Documentation ¶
Index ¶
- func DomainNameQuery(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func HTTPHost(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func IsDomainName(domain string) bool
- func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (*adapter.InboundContext, error)
- func PeekStream(ctx context.Context, conn net.Conn, buffer *buf.Buffer, ...) (*adapter.InboundContext, error)
- func QUICClientHello(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func STUNMessage(ctx context.Context, packet []byte) (*adapter.InboundContext, error)
- func StreamDomainNameQuery(readCtx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- func TLSClientHello(ctx context.Context, reader io.Reader) (*adapter.InboundContext, error)
- type PacketSniffer
- type StreamSniffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainNameQuery ¶
func IsDomainName ¶
func PeekPacket ¶
func PeekPacket(ctx context.Context, packet []byte, sniffers ...PacketSniffer) (*adapter.InboundContext, error)
func PeekStream ¶
func PeekStream(ctx context.Context, conn net.Conn, buffer *buf.Buffer, sniffers ...StreamSniffer) (*adapter.InboundContext, error)
func QUICClientHello ¶
func STUNMessage ¶
func StreamDomainNameQuery ¶
func TLSClientHello ¶
Types ¶
type PacketSniffer ¶
type StreamSniffer ¶
Click to show internal directories.
Click to hide internal directories.