Documentation ¶
Index ¶
- type Manager
- func (mgr *Manager) AddTag(name, color, queryString string) error
- func (mgr *Manager) Close()
- func (mgr *Manager) ConverterStderr(converterName string, pid int) (*converters.ProcessStderr, error)
- func (mgr *Manager) DelTag(name string) error
- func (mgr *Manager) GetView() View
- func (mgr *Manager) ImportPcap(filename string)
- func (mgr *Manager) KnownPcaps() []pcapmetadata.PcapInfo
- func (mgr *Manager) ListConverters() []*converters.Statistics
- func (mgr *Manager) ListTags() []TagInfo
- func (mgr *Manager) ResetConverter(converterName string) error
- func (mgr *Manager) Status() Statistics
- func (mgr *Manager) UpdateTag(name string, operation UpdateTagOperation) error
- type Statistics
- type StreamContext
- type StreamsOption
- type TagInfo
- type UpdateTagOperation
- type View
- func (v *View) AllStreams(f func(StreamContext) error, options ...StreamsOption) error
- func (v *View) ReferenceTime() (time.Time, error)
- func (v *View) Release()
- func (v *View) SearchStreams(filter *query.Query, f func(StreamContext) error, options ...StreamsOption) (bool, uint, error)
- func (v *View) Stream(streamID uint64) (StreamContext, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { StateDir string PcapDir string IndexDir string SnapshotDir string ConverterDir string // contains filtered or unexported fields }
func (*Manager) ConverterStderr ¶
func (mgr *Manager) ConverterStderr(converterName string, pid int) (*converters.ProcessStderr, error)
func (*Manager) ImportPcap ¶
func (*Manager) KnownPcaps ¶
func (mgr *Manager) KnownPcaps() []pcapmetadata.PcapInfo
func (*Manager) ListConverters ¶
func (mgr *Manager) ListConverters() []*converters.Statistics
func (*Manager) ResetConverter ¶
func (*Manager) Status ¶
func (mgr *Manager) Status() Statistics
type Statistics ¶
type StreamContext ¶
type StreamContext struct {
// contains filtered or unexported fields
}
func (StreamContext) AllConverters ¶
func (c StreamContext) AllConverters() ([]string, error)
func (StreamContext) AllTags ¶
func (c StreamContext) AllTags() ([]string, error)
func (StreamContext) Stream ¶
func (c StreamContext) Stream() *index.Stream
type StreamsOption ¶
type StreamsOption func(*streamsOptions)
func Limit ¶
func Limit(defaultLimit, page uint) StreamsOption
func PrefetchAllTags ¶
func PrefetchAllTags() StreamsOption
func PrefetchTags ¶
func PrefetchTags(tags []string) StreamsOption
type UpdateTagOperation ¶
type UpdateTagOperation func(*updateTagOperationInfo)
func UpdateTagOperationMarkAddStream ¶
func UpdateTagOperationMarkAddStream(streams []uint64) UpdateTagOperation
func UpdateTagOperationMarkDelStream ¶
func UpdateTagOperationMarkDelStream(streams []uint64) UpdateTagOperation
func UpdateTagOperationSetConverter ¶
func UpdateTagOperationSetConverter(converterNames []string) UpdateTagOperation
func UpdateTagOperationUpdateColor ¶
func UpdateTagOperationUpdateColor(color string) UpdateTagOperation
type View ¶
type View struct {
// contains filtered or unexported fields
}
func (*View) AllStreams ¶
func (v *View) AllStreams(f func(StreamContext) error, options ...StreamsOption) error
func (*View) SearchStreams ¶
func (v *View) SearchStreams(filter *query.Query, f func(StreamContext) error, options ...StreamsOption) (bool, uint, error)
Click to show internal directories.
Click to hide internal directories.