packet

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	ServePacket(ctx context.Context, pkt Packet)
}

type ListenConfig

type ListenConfig interface {
	ListenPacket(ctx context.Context) (Packet, error)
}

type NetworkEnum added in v0.5.0

type NetworkEnum string
const (
	EnumNetworkUDP        NetworkEnum = "udp"
	EnumNetworkUDP4       NetworkEnum = "udp4"
	EnumNetworkUDP6       NetworkEnum = "udp6"
	EnumNetworkUnixPacket NetworkEnum = "unixpacket"
)

type Packet

type Packet = net.PacketConn

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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