packet

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerWithConfig

func NewServerWithConfig(conf *Config) (service.Service, error)

Types

type Config

type Config struct {
	Listener packet.ListenConfig
	Handler  packet.Handler
}

type Server

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

func NewServer

func NewServer(listenConfig packet.ListenConfig, handler packet.Handler) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) ServePacket

func (s *Server) ServePacket(ctx context.Context, pkt packet.Packet)

Jump to

Keyboard shortcuts

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