config

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 3 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 {
	Address                           string `json:"address" validate:"nonzero"`
	Port                              string `json:"port" validate:"nonzero"`
	ServiceDiscoveryControllerAddress string `json:"service_discovery_controller_address" validate:"nonzero"`
	ServiceDiscoveryControllerPort    string `json:"service_discovery_controller_port" validate:"nonzero"`
	ClientCert                        string `json:"client_cert" validate:"nonzero"`
	ClientKey                         string `json:"client_key" validate:"nonzero"`
	CACert                            string `json:"ca_cert" validate:"nonzero"`
	MetronPort                        int    `json:"metron_port" validate:"min=1"`
	MetricsEmitSeconds                int    `json:"metrics_emit_seconds" validate:"min=1"`
	LogLevelAddress                   string `json:"log_level_address" validate:"nonzero"`
	LogLevelPort                      int    `json:"log_level_port" validate:"min=1"`
}

func NewConfig

func NewConfig(configJSON []byte) (*Config, error)

Jump to

Keyboard shortcuts

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