options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func Body

func Body(b bool) Option

func Gunzip

func Gunzip(b bool) Option

func Iface

func Iface(s string) Option

func Lazy

func Lazy(b bool) Option

func Pcap

func Pcap(s string) Option

func Port

func Port(i int) Option

func Snaplen

func Snaplen(i int) Option

type Options

type Options struct {
	StatsOptions *stats_options.Options `yaml:"stats_options"`
	Snaplen      int                    `yaml:snaplen`
	Iface        string                 `yaml:iface`
	Port         int                    `yaml:port`
	Pcap         string                 `yaml:pcap`
	Lazy         bool                   `yaml:lazy`
	Body         bool                   `yaml:body`
	Gunzip       bool                   `yaml:gunzip`
}

func LoadOptionsFromReader

func LoadOptionsFromReader(r io.Reader) (*Options, error)

func NewOptions

func NewOptions(opt ...Option) *Options

func SetOptions

func SetOptions(options *Options, opt ...Option) *Options

func (*Options) Int32Snaplen

func (o *Options) Int32Snaplen() int32

func (*Options) Uint32Snaplen

func (o *Options) Uint32Snaplen() uint32

Jump to

Keyboard shortcuts

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