config

package
v0.0.0-...-c9b7238 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 5 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 {
	LogLevel       string   `toml:"logLevel"`
	LogNoColor     bool     `toml:"logNoColor"`
	LogNoDate      bool     `toml:"logNoDate"`
	SkipInterfaces []string `toml:"skipInterfaces,omitempty"`
	SkipDrivers    []string `toml:"skipDrivers,omitempty"`
	Topic          string   `toml:"topic"`
	Brokers        []string `toml:"brokers"`
	Timeout        int      `toml:"timeout"`
	RateLimit      int      `toml:"rateLimit"`
	ComprAlgo      string   `toml:"comprAlgo"`
	Refresh        int      `toml:"refresh"`
}

Config struct.

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(file string) error

func (*Config) Print

func (c *Config) Print()

Jump to

Keyboard shortcuts

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