server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerUDP added in v0.0.4

type HandlerUDP interface {
	HandlerUDP(w Writer, addr net.Addr, b []byte)
}

func NewLogHandlerUDP added in v0.0.4

func NewLogHandlerUDP(l xlog.Logger) HandlerUDP

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(l xlog.Logger, addr string) *Server

func (*Server) Down

func (v *Server) Down() error

func (*Server) HandleFunc added in v0.0.4

func (v *Server) HandleFunc(h HandlerUDP)

func (*Server) Up

func (v *Server) Up(ctx xc.Context) error

type Writer

type Writer interface {
	WriteTo(p []byte, addr net.Addr) (n int, err error)
}

Jump to

Keyboard shortcuts

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