Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchEventString ¶
func WatchEventString(ev WatchEvent) string
Types ¶
type StatsStream ¶
type StatsStream struct {
// contains filtered or unexported fields
}
statsStream will handle the actual decoding of stats requests.
func (*StatsStream) Reassembled ¶
func (s *StatsStream) Reassembled(reassemblies []tcpassembly.Reassembly)
Reassembled is called whenever new packet data is available for reading. Reassembly objects contain stream data IN ORDER.
func (*StatsStream) ReassemblyComplete ¶
func (s *StatsStream) ReassemblyComplete()
ReassemblyComplete is called when the TCP assembler believes a stream has finished.
type StatsStreamFactory ¶
type StatsStreamFactory struct{}
simpleStreamFactory implements tcpassembly.StreamFactory
func (*StatsStreamFactory) New ¶
func (factory *StatsStreamFactory) New(net, transport gopacket.Flow) tcpassembly.Stream
New creates a new stream. It's called whenever the assembler sees a stream it isn't currently following.
type WatchEvent ¶
type WatchEvent uint
const ( EventNull WatchEvent = iota EventCreate EventModify EventDelete )
Click to show internal directories.
Click to hide internal directories.