settings

package
v0.0.0-...-7f17660 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPBinding

type HTTPBinding struct {
	Address string
	TLS     []struct {
		Cert string
		Key  string
	}
	ClientCA []struct {
		Cert string
	}
}

HTTPBinding defines the address that should be bound on and optional tls certificates

func (HTTPBinding) ClientCertificateRequired

func (httpBinding HTTPBinding) ClientCertificateRequired() bool

ClientCertificateRequired returns true if ClientCA's are present

func (HTTPBinding) TLSEnabled

func (httpBinding HTTPBinding) TLSEnabled() bool

TLSEnabled returns true if TLS settings are present

type Settings

type Settings struct {
	Main struct {
		RedisHost     string
		RedisPassword string
	}

	Listen []HTTPBinding

	Influxdb struct {
		Host     string
		Db       string
		User     string
		Password string
	}

	Handlers struct {
		Binary string
		Cwd    string
		Env    map[string]string
	}

	Syncthing struct {
		Port int
	}
}

Settings are the configurable options for the AgentController

func LoadSettingsFromTomlFile

func LoadSettingsFromTomlFile(filename string) (settings Settings, err error)

LoadSettingsFromTomlFile does exactly what the name says, it loads a toml in a Settings struct

Jump to

Keyboard shortcuts

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