configuration

package
v0.0.0-...-a2e6e6b Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 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 ExporterConfig

type ExporterConfig struct {
	Host string
	Port uint16
}

type FlowsConfig

type FlowsConfig struct {
	Max           uint32
	IdleTimeout   uint32
	ActiveTimeout uint32
}

type InterfaceConfig

type InterfaceConfig struct {
	Name   string `yaml:"-"`
	Filter string
}

type MainConfiguration

type MainConfiguration struct {
	Logging    logging.Config             `yaml:"logging"`
	Exporter   ExporterConfig             `yaml:"exporter"`
	Cache      FlowsConfig                `yaml:"cache"`
	Interfaces map[string]InterfaceConfig `yaml:"interfaces"`
	Log        *log.Entry                 `yaml:"-"`
	// contains filtered or unexported fields
}

func New

func New(path string) (*MainConfiguration, error)

func NewAlternateConfiguration

func NewAlternateConfiguration(path string) (*MainConfiguration, error)

func (*MainConfiguration) Read

func (c *MainConfiguration) Read() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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