config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher struct {
	Port int `envconfig:"CACHER_PORT" default:"8082"`
}

Cacher is config for cacher server

type Config

type Config struct {
	Production bool `envconfig:"PRODUCTION" default:"false"`
	AdsMode    bool `envconfig:"ADS_MODE" default:"false"`

	Xds
	Cacher
}

Config is config for sxds

func New

func New() (*Config, error)

New generates a Config

func (*Config) IsProduction

func (c *Config) IsProduction() bool

type Xds

type Xds struct {
	Port int `envconfig:"XDS_PORT" default:"8081"`
}

Xds is config for xDS server

Jump to

Keyboard shortcuts

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