config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 Config

type Config struct {
	LogPath       string `yaml:"log_path"`
	MetricsOutput string `yaml:"metrics_output"`
	ServerID      string `yaml:"server_id"`
	SDPInstance   string `yaml:"sdp_instance"`
}

Config for p4prometheus

func LoadConfigFile

func LoadConfigFile(filename string) (*Config, error)

func LoadConfigString

func LoadConfigString(content []byte) (*Config, error)

func Unmarshal

func Unmarshal(config []byte) (*Config, error)

Unmarshal the config

Jump to

Keyboard shortcuts

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