Versions in this module Expand all Collapse all v2 v2.4.0 Jul 11, 2022 Changes in this version + var Goroutinewg *sync.WaitGroup + func MakeCommands() commands + func Parse(filename string, b []byte, opts ...Option) (interface{}, error) + func ParseFile(filename string, opts ...Option) (i interface{}, err error) + func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, error) + type Bytes struct + Data []byte + Dirn Direction + func (b Bytes) Direction() Direction + func (b Bytes) StreamData() []byte + func (b Bytes) String() string + type Cloner interface + Clone func() interface{} + type Direction int + const Client + const Server + func (d Direction) String() string + type FollowHeader struct + Filter string + Follow string + Node0 string + Node1 string + func (h FollowHeader) String() string + type FollowStream struct + Bytes []Bytes + func (f FollowStream) String() string + type IChunk interface + Direction func() Direction + StreamData func() []byte + type IIndexerCallbacks interface + AfterIndexEnd func(success bool) + type ILoaderCmds interface + Indexer func(pcap string, proto string, idx int) pcap.IPcapCommand + Stream func(pcap string, proto string, idx int) pcap.IPcapCommand + type IOnStreamChunk interface + OnStreamChunk func(chunk IChunk) + type IOnStreamHeader interface + OnStreamHeader func(header FollowHeader) + type ISavedData interface + Chunk func(i int) IChunk + NumChunks func() int + type ITrackPayload interface + TrackPayloadPacket func(packet int) + type Loader struct + SuppressErrors bool + func NewLoader(cmds ILoaderCmds, ctx context.Context) *Loader + func (c *Loader) StartLoad(pcap string, proto string, idx int, app gowid.IApp, cb IIndexerCallbacks) + func (c *Loader) StopLoad() + type Option func(*parser) Option + func AllowInvalidUTF8(b bool) Option + func Debug(b bool) Option + func Entrypoint(ruleName string) Option + func GlobalStore(key string, value interface{}) Option + func InitState(key string, value interface{}) Option + func MaxExpressions(maxExprCnt uint64) Option + func Memoize(b bool) Option + func Recover(b bool) Option + func Statistics(stats *Stats, choiceNoMatch string) Option + type Protocol int + const TCP + const UDP + const Unspecified + func (p Protocol) String() string + type Stats struct + ChoiceAltCnt map[string]map[string]int + ExprCnt uint64 + type StreamParseError struct + func (e StreamParseError) Error() string