configuration

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 22

Documentation

Index

Constants

View Source
const (
	DefaultPort          = ":50101"
	DefaultH1Port        = ":5100"
	DefaultTimeout       = time.Minute
	RegistrationNone     = "none"
	RegistrationEmail    = "email"
	RegistrationDefault  = RegistrationEmail
	NotificationsDefault = true
	SecretsDir           = "/run/secrets/"
	ConfigsDir           = "/run/configs/"
	ConfigName           = "amplifier"
	CertificateSecret    = "cert0.pem"
)

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(config *Configuration) error

ReadConfig reads the configuration file

Types

type Configuration

type Configuration struct {
	Version          string
	Build            string
	Port             string
	H1Port           string
	EtcdEndpoints    []string
	ElasticsearchURL string
	NatsURL          string
	DockerURL        string
	DockerVersion    string
	JWTSecretKey     string `yaml:"JWTSecretKey"`
	SUPassword       string `yaml:"SUPassword"`
	EmailKey         string `yaml:"EmailKey"`
	EmailSender      string
	SmsAccountID     string
	SmsKey           string
	SmsSender        string
	Registration     string
	Notifications    bool
}

Configuration is used for amplifier configuration settings

func (*Configuration) String

func (c *Configuration) String() string

Jump to

Keyboard shortcuts

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