cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: BSD-3-Clause Imports: 13 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, int64, 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 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)

type RootFlags

type RootFlags struct {
	Optional bool
	IsSet    bool
	Root     brimcap.Root
	// contains filtered or unexported fields
}

func (*RootFlags) Init

func (f *RootFlags) Init() error

func (*RootFlags) SetFlags

func (f *RootFlags) 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