config

package
v0.0.0-...-0a03743 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFilename = "tpl.yml"

DefaultFilename the default filename for the configuration

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	KV struct {
		URL               string                 `yaml:"url"`
		Type              string                 `yaml:"type"`
		ClientTLS         *libkv.ClientTLSConfig `yaml:"client-tls"`
		TLS               *tls.Config            `yaml:"tls"`
		PersistConnection bool                   `yaml:"persistent-connection"`
		ConnectionTimeout int                    `yaml:"connection-timeout"`
		Bucket            string                 `yaml:"bucket"`
		Username          string                 `yaml:"username"`
		Password          string                 `yaml:"password"`
	}
}

Settings tpl settings

func Load

func Load(filepath string) (*Settings, error)

Load the yaml settings from given path

Jump to

Keyboard shortcuts

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