config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilConfig = Config{}

NilConfig is an empty Configuration (zero value).

View Source
var NilConnection = ConnectionInfo{}

NilConnection is an empty ConnectionInfo (zero value).

Functions

This section is empty.

Types

type Config

type Config struct {
	Port               int
	TLSPort            int
	BaseURI            string
	RecoveryMode       bool
	CommonPasswordList string

	LetsEncryptHosts []string
	CertFile         string
	KeyFile          string

	MailServer ConnectionInfo

	Elastic  ConnectionInfo
	Mongo    ConnectionInfo
	Postgres ConnectionInfo
	BoltDB   string
}

Config holds all runtime configuration details.

func Configure

func Configure(path string) (Config, error)

Configure reads in the config file at the given path and returns it.

type ConnectionInfo

type ConnectionInfo struct {
	Host      string
	User      string
	Password  string
	Namespace string
}

ConnectionInfo encapsulates details for connecting to an outside resource.

Jump to

Keyboard shortcuts

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