Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// HandleTCP serves a single accepted connection until it is closed.
HandleTCP(ctx context.Context, conn net.Conn, env Env) error
// HandleUDP processes a single datagram and returns an optional reply.
HandleUDP(ctx context.Context, data []byte, remote net.Addr, env Env) ([]byte, error)
}
Handler processes network traffic for a listener.
type LuaHandler ¶
type LuaHandler struct {
// contains filtered or unexported fields
}
type SinkHandler ¶
type SinkHandler struct{}
SinkHandler consumes and discards all received data.
Click to show internal directories.
Click to hide internal directories.