udpsvr

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UdpWithUdp

func UdpWithUdp(opts ...UDPOption) register.RegisterOption

Types

type UDPOption

type UDPOption func(*UdpServer)

func ConsoleWriter

func ConsoleWriter() UDPOption

type UdpServer

type UdpServer struct {
	Addr           string `toml:"addr" json:"addr"`
	BroadcastChan  int    `toml:"broadcast_chan" json:"broadcast_chan"`
	MaxMessageSize int    `toml:"max_message_size" json:"max_message_size"`
	// contains filtered or unexported fields
}

func (*UdpServer) AppendWriter

func (u *UdpServer) AppendWriter(w writer.UDPWriter)

func (*UdpServer) Check

func (u *UdpServer) Check() bool

func (*UdpServer) Name

func (u *UdpServer) Name() string

func (*UdpServer) Ready

func (u *UdpServer) Ready()

func (*UdpServer) SetName

func (u *UdpServer) SetName(name string)

func (*UdpServer) Start

func (u *UdpServer) Start(ctx context.Context) error

type WriterToConsole

type WriterToConsole struct{}

func (WriterToConsole) Writer

func (WriterToConsole) Writer(msg []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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