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 BrutalOptions
- type ListenerConfig
- 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
- func (h *ListenerHandler) TypeMutation(typ C.Type) *ListenerHandler
- type MuxOption
Constants ¶
View Source
const UDPTimeout = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func ShouldIgnorePacketError ¶
Types ¶
type BrutalOptions ¶
type ListenerConfig ¶
type ListenerHandler ¶
type ListenerHandler struct { ListenerConfig // contains filtered or unexported fields }
func NewListenerHandler ¶
func NewListenerHandler(lc ListenerConfig) (h *ListenerHandler, err error)
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 ¶
func (*ListenerHandler) TypeMutation ¶
func (h *ListenerHandler) TypeMutation(typ C.Type) *ListenerHandler
type MuxOption ¶
type MuxOption struct { Padding bool `yaml:"padding" json:"padding,omitempty"` Brutal BrutalOptions `yaml:"brutal" json:"brutal,omitempty"` }
Click to show internal directories.
Click to hide internal directories.