config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileName      = "hoard.toml"
	DefaultListenAddress = "tcp://localhost:53431"
)

Variables

Functions

This section is empty.

Types

type HoardConfig

type HoardConfig struct {
	ListenAddress string
	Storage       *storage.StorageConfig
	Logging       *logging.LoggingConfig
}

func HoardConfigFromString

func HoardConfigFromString(tomlString string) (*HoardConfig, error)

func NewHoardConfig

func NewHoardConfig(listenAddress string, storageConfig *storage.StorageConfig,
	loggingConfig *logging.LoggingConfig) *HoardConfig

func (*HoardConfig) TOMLString

func (hoardConfig *HoardConfig) TOMLString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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