analyzecli

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultZeek = analyzer.Config{
		Cmd: "zeekrunner",
	}
	DefaultSuricata = analyzer.Config{
		Cmd:    "suricatarunner",
		Globs:  []string{"*.json"},
		Shaper: suricatashaper,
	}
)

Functions

This section is empty.

Types

type Display

type Display struct {
	// contains filtered or unexported fields
}

func NewDisplay

func NewDisplay(json bool) *Display

func (*Display) Close

func (a *Display) Close() error

func (*Display) Display

func (a *Display) Display(w io.Writer) bool

func (*Display) Run

func (a *Display) Run(analyzer analyzer.Interface, pcapsize int64, span nano.Span)

func (*Display) Warn

func (a *Display) Warn(msg string) error

type Flags

type Flags struct {
	Configs []analyzer.Config
	// contains filtered or unexported fields
}

func (*Flags) Init

func (f *Flags) Init() (err error)

func (*Flags) SetFlags

func (f *Flags) SetFlags(fs *flag.FlagSet)

type MsgStatus

type MsgStatus struct {
	Type           string     `json:"type"`
	StartTime      nano.Ts    `json:"start_time"`
	UpdateTime     nano.Ts    `json:"update_time"`
	PcapTotalSize  int64      `json:"pcap_total_size"`
	PcapReadSize   int64      `json:"pcap_read_size"`
	RecordsWritten int64      `json:"records_written"`
	WarningsCount  int32      `json:"-"`
	Span           *nano.Span `json:"span,omitempty"`
}

func (MsgStatus) Completion

func (m MsgStatus) Completion() (float64, bool)

type MsgWarning

type MsgWarning struct {
	Type    string `json:"type"`
	Warning string `json:"warning"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL