cli

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "unknown"

Version is set via the Go linker. See Makefile.

Functions

func FileExists

func FileExists(path string) bool

func OpenFileArg

func OpenFileArg(arg string) (*os.File, error)

OpenFileArg opens a file from an argument and returns the file as well as the size of the file. If the argument is "-", this will return stdin (0 will be returned as the size).

Types

type ConfigFlags added in v1.0.4

type ConfigFlags struct {
	brimcap.Config
}

func (*ConfigFlags) SetFlags added in v1.0.4

func (f *ConfigFlags) SetFlags(fs *flag.FlagSet) error

func (*ConfigFlags) SetRootOnlyFlags added in v1.0.4

func (f *ConfigFlags) SetRootOnlyFlags(fs *flag.FlagSet) error

type Flags

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

func (*Flags) Cleanup

func (f *Flags) Cleanup()

func (*Flags) Init

func (f *Flags) Init(all ...Initializer) error

func (*Flags) SetFlags

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

type Initializer

type Initializer interface {
	Init() error
}

type PcapSearchFlags

type PcapSearchFlags struct {
	Search brimcap.Search
	// contains filtered or unexported fields
}

func (*PcapSearchFlags) Init

func (f *PcapSearchFlags) Init() error

func (*PcapSearchFlags) SetFlags

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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