Back to godoc.org

Package config

v1.13.0
Latest Go to latest

The latest major version is .

Published: Apr 16, 2018 | License: Apache-2.0 | Module: code.cloudfoundry.org/cf-networking-release

Index

type Config

type Config struct {
	ListenHost                      string    `json:"listen_host" validate:"nonzero"`
	ListenPort                      int       `json:"listen_port" validate:"nonzero"`
	LogPrefix                       string    `json:"log_prefix" validate:"nonzero"`
	DebugServerHost                 string    `json:"debug_server_host" validate:"nonzero"`
	DebugServerPort                 int       `json:"debug_server_port" validate:"nonzero"`
	UAAClient                       string    `json:"uaa_client" validate:"nonzero"`
	UAAClientSecret                 string    `json:"uaa_client_secret" validate:"nonzero"`
	UAACA                           string    `json:"uaa_ca"`
	UAAURL                          string    `json:"uaa_url" validate:"nonzero"`
	UAAPort                         int       `json:"uaa_port" 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"`
	CleanupInterval                 int       `json:"cleanup_interval" validate:"min=1"`
	CCAppRequestChunkSize           int       `json:"cc_app_request_chunk_size"`
	RequestTimeout                  int       `json:"request_timeout" validate:"min=1"`
	MaxPolicies                     int       `json:"max_policies" validate:"min=1"`
	EnableSpaceDeveloperSelfService bool      `json:"enable_space_developer_self_service"`
	AllowedCORSDomains              []string  `json:"allowed_cors_domains"`
}

func New

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

func (*Config) Validate

func (c *Config) Validate() error

type InternalConfig

type InternalConfig struct {
	LogPrefix          string    `json:"log_prefix" validate:"nonzero"`
	ListenHost         string    `json:"listen_host" 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"`
	HealthCheckPort    int       `json:"health_check_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"`
	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"`
	RequestTimeout     int       `json:"request_timeout" validate:"min=1"`
}

func NewInternal

func NewInternal(path string) (*InternalConfig, error)

func (*InternalConfig) Validate

func (c *InternalConfig) Validate() error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier