config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interface     string
	Strategy      string
	NumberOfRings int  `yaml:"number_of_rings"`
	ZeroCopy      bool `yaml:"zero_copy"`
	Bpf           string

	Promiscuous bool
	MaxCores    int    `yaml:"max_cores"`
	SnapLen     int    `yaml:"snapshot_length"`
	ConnTimeout int    `yaml:"connection_timeout"`
	LogFile     string `yaml:"log_file"`
	Postgres    Postgres
	Redis       Redis
}

Config is ...

func New

func New(cf string) (cfg *Config, err error)

New is ...

type Postgres

type Postgres struct {
	User            string
	Password        string
	DB              string
	Host            string
	MaxConn         int `yaml:"max_conn"`
	MaxIDLecConn    int `yaml:"max_idlec_conn"`
	MaxLifeTimeConn int `yaml:"max_lifetime_conn"`
}

Postgres is ...

type Redis

type Redis struct {
	Password string
	Host     string
}

Redis is ...

Jump to

Keyboard shortcuts

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