config

package
v0.0.0-...-b131691 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(c *ConfigMgrConfig, path string) error

Types

type BackendConfig

type BackendConfig struct {
	Port    int
	Address string
}

type ConfigMgrConfig

type ConfigMgrConfig struct {
	Listen   ListenConfig `toml:"listen"`
	Main     MainConfig   `toml:"main"`
	Backends map[string]BackendConfig
}

type ListenConfig

type ListenConfig struct {
	Port    int
	Address string
}

type MainConfig

type MainConfig struct {
	KeyPaths  []string `toml:"key_paths"`
	KeyPrefix string   `toml:"key_prefix"`
	HdrPrefix string   `toml:"hdr_prefix"`
}

Jump to

Keyboard shortcuts

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