Documentation ¶
Index ¶
- Constants
- func ConvertMetadata(metadata *C.Metadata) M.Metadata
- func ShouldIgnorePacketError(err error) bool
- func UpstreamMetadata(metadata M.Metadata) M.Metadata
- func WithAdditions(ctx context.Context, additions ...inbound.Addition) context.Context
- type ListenerHandler
- func (h *ListenerHandler) IsSpecialFqdn(fqdn string) bool
- func (h *ListenerHandler) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error
- func (h *ListenerHandler) NewError(ctx context.Context, err error)
- func (h *ListenerHandler) NewPacketConnection(ctx context.Context, conn network.PacketConn, metadata M.Metadata) error
- func (h *ListenerHandler) ParseSpecialFqdn(ctx context.Context, conn net.Conn, metadata M.Metadata) error
Constants ¶
View Source
const UDPTimeout = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func ShouldIgnorePacketError ¶
Types ¶
type ListenerHandler ¶
type ListenerHandler struct { TcpIn chan<- C.ConnContext UdpIn chan<- C.PacketAdapter Type C.Type Additions []inbound.Addition UDPTimeout time.Duration }
func (*ListenerHandler) IsSpecialFqdn ¶
func (h *ListenerHandler) IsSpecialFqdn(fqdn string) bool
func (*ListenerHandler) NewConnection ¶
func (*ListenerHandler) NewError ¶
func (h *ListenerHandler) NewError(ctx context.Context, err error)
func (*ListenerHandler) NewPacketConnection ¶
func (h *ListenerHandler) NewPacketConnection(ctx context.Context, conn network.PacketConn, metadata M.Metadata) error
func (*ListenerHandler) ParseSpecialFqdn ¶
Click to show internal directories.
Click to hide internal directories.