cmd

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2025 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LARVAL = channelType(iota)
	OPEN
)

Variables

This section is empty.

Functions

func ClientMain

func ClientMain() int

func ListenUDPReuse

func ListenUDPReuse(ctx context.Context, network string, laddr *net.UDPAddr) (*net.UDPConn, error)

func ListenUDPWithAutoMulticast

func ListenUDPWithAutoMulticast(udpAddr *net.UDPAddr, ifaceName string) (*net.UDPConn, error)

ListenUDPWithAutoMulticast listens on udpAddr. If udpAddr.IP is multicast, it binds to the wildcard address on the same family+port and joins the multicast group. Otherwise it just listens normally.

If ifaceName is non-empty, it will join only on that interface. Otherwise it tries all "up" multicast-capable interfaces (excluding loopback).

func ServerMain

func ServerMain() int

Types

type FlagValue

type FlagValue struct {
	client_config.CLIOptionParser
	// contains filtered or unexported fields
}

func NewFlagValue

func NewFlagValue(optionName client_config.OptionName, parser client_config.CLIOptionParser) *FlagValue

func (*FlagValue) IsBoolFlag

func (v *FlagValue) IsBoolFlag() bool

func (*FlagValue) Set

func (v *FlagValue) Set(s string) (err error)

func (*FlagValue) String

func (v *FlagValue) String() string

type Size

type Size interface {
	Size() int64
}

Size is needed by the /demo/upload handler to determine the size of the uploaded file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL