config

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 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 Netmon

type Netmon struct {
	PollInterval  int    `json:"poll_interval" validate:"min=1"`
	MetronAddress string `json:"metron_address" validate:"nonzero"`
	InterfaceName string `json:"interface_name" validate:"nonzero"`
	LogLevel      string `json:"log_level"`
	LogPrefix     string `json:"log_prefix" validate:"nonzero"`
}

func New

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

func (Netmon) ParseLogLevel

func (n Netmon) ParseLogLevel() (lager.LogLevel, error)

func (*Netmon) Validate

func (c *Netmon) Validate() error

Jump to

Keyboard shortcuts

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