config

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenHost         string    `json:"listen_host" validate:"nonzero"`
	ListenPort         int       `json:"listen_port" validate:"nonzero"`
	InternalListenPort int       `json:"internal_listen_port" validate:"nonzero"`
	DebugServerHost    string    `json:"debug_server_host" validate:"nonzero"`
	DebugServerPort    int       `json:"debug_server_port" validate:"nonzero"`
	CACertFile         string    `json:"ca_cert_file" validate:"nonzero"`
	ServerCertFile     string    `json:"server_cert_file" validate:"nonzero"`
	ServerKeyFile      string    `json:"server_key_file" validate:"nonzero"`
	UAAClient          string    `json:"uaa_client" validate:"nonzero"`
	UAAClientSecret    string    `json:"uaa_client_secret" validate:"nonzero"`
	UAAURL             string    `json:"uaa_url" validate:"nonzero"`
	CCURL              string    `json:"cc_url" validate:"nonzero"`
	SkipSSLValidation  bool      `json:"skip_ssl_validation"`
	Database           db.Config `json:"database" validate:"nonzero"`
	TagLength          int       `json:"tag_length" validate:"nonzero"`
	MetronAddress      string    `json:"metron_address" validate:"nonzero"`
	LogLevel           string    `json:"log_level"`
}

func New added in v0.8.0

func New(path string) (*Config, error)

func (*Config) Validate added in v0.8.0

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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