Documentation ¶ Index ¶ func NewListenerWithConfig(ctx context.Context, conf *Config) packet.ListenConfig type Config type Listener func NewListener(network string, address string) *Listener func (n *Listener) ListenPacket(ctx context.Context) (packet.Packet, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewListenerWithConfig ¶ func NewListenerWithConfig(ctx context.Context, conf *Config) packet.ListenConfig Types ¶ type Config ¶ type Config struct { Network packet.NetworkEnum Address string } type Listener ¶ type Listener struct { // contains filtered or unexported fields } func NewListener ¶ func NewListener(network string, address string) *Listener func (*Listener) ListenPacket ¶ func (n *Listener) ListenPacket(ctx context.Context) (packet.Packet, error) Source Files ¶ View all Source files init.golistener.go Click to show internal directories. Click to hide internal directories.