Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TlsSniff = ProtocolSnifferWithNetwork{ // contains filtered or unexported fields } HTTP1Sniff = ProtocolSnifferWithNetwork{ // contains filtered or unexported fields } QUICSniff = ProtocolSnifferWithNetwork{ // contains filtered or unexported fields } BTScniff = ProtocolSnifferWithNetwork{ // contains filtered or unexported fields } UTPSniff = ProtocolSnifferWithNetwork{ // contains filtered or unexported fields } )
Adapter functions - created once at package init
Functions ¶
This section is empty.
Types ¶
type CachedConn ¶
Cache, ReadMultiBuffer should be called sequentially.
type CachedDdlPacketConn ¶
type CachedDdlPacketConn struct {
udp.DdlPacketReaderWriter
// contains filtered or unexported fields
}
type CachedPacketConn ¶
type CachedPacketConn struct {
udp.PacketReaderWriter
// contains filtered or unexported fields
}
func (*CachedPacketConn) ReadPacket ¶
func (r *CachedPacketConn) ReadPacket() (*udp.Packet, error)
type CachedRW ¶
type CachedRW struct {
buf.DdlReaderWriter
// contains filtered or unexported fields
}
type CachedReadRw ¶
type CachedReadRw struct {
buf.ReaderWriter
// contains filtered or unexported fields
}
Cache, ReadMultiBuffer should be called sequentially.
func (*CachedReadRw) OkayToUnwrapReader ¶
func (r *CachedReadRw) OkayToUnwrapReader() int
func (*CachedReadRw) OkayToUnwrapWriter ¶
func (r *CachedReadRw) OkayToUnwrapWriter() int
func (*CachedReadRw) ReadMultiBuffer ¶
func (r *CachedReadRw) ReadMultiBuffer() (buf.MultiBuffer, error)
func (*CachedReadRw) UnwrapReader ¶
func (r *CachedReadRw) UnwrapReader() any
func (*CachedReadRw) UnwrapWriter ¶
func (r *CachedReadRw) UnwrapWriter() any
type ProtocolSnifferWithNetwork ¶ added in v1.0.1
type ProtocolSnifferWithNetwork struct {
// contains filtered or unexported fields
}
type SniffResult ¶
type SniffSetting ¶ added in v1.0.1
type SniffSetting struct {
Sniffers []ProtocolSnifferWithNetwork
Interval time.Duration
}
type Sniffer ¶
type Sniffer struct {
// contains filtered or unexported fields
}
func NewSniffer ¶
func NewSniffer(setting SniffSetting) *Sniffer
NewSniffer returns the singleton sniffer (zero allocation, thread-safe)
Click to show internal directories.
Click to hide internal directories.