Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupported = errors.New("source is not supported")
)
Functions ¶
This section is empty.
Types ¶
type PacketData ¶
type PacketSource ¶
type PacketSource interface { NextPacket() (gopacket.Packet, error) Start() error Stop() error Stats() (packetsGot, packetsLost uint64) }
func NewPlainPacketSource ¶
func NewPlainPacketSource(dataDir string) (PacketSource, error)
func NewTLSPacketSource ¶
func NewTLSPacketSource(dataDir string) (PacketSource, error)
type PacketSourceImpl ¶
type PacketSourceImpl struct {
// contains filtered or unexported fields
}
func (*PacketSourceImpl) NextPacket ¶
func (p *PacketSourceImpl) NextPacket() (gopacket.Packet, error)
func (*PacketSourceImpl) Start ¶
func (p *PacketSourceImpl) Start() error
func (*PacketSourceImpl) Stats ¶
func (p *PacketSourceImpl) Stats() (packetsGot, packetsLost uint64)
func (*PacketSourceImpl) Stop ¶
func (p *PacketSourceImpl) Stop() error
func (*PacketSourceImpl) WritePacket ¶
func (p *PacketSourceImpl) WritePacket(pkt gopacket.Packet) error
type PacketsPoller ¶
Click to show internal directories.
Click to hide internal directories.