config

package
v0.0.0-...-8bc0a93 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT 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 {
	BindAddr                string `envconfig:"BIND_ADDR"`
	AuthToken               string `envconfig:"AUTH_TOKEN" json:"-"`
	FlexibleTableBuilderURL string `envconfig:"FTB_URL"`
	IPAddr                  string `envconfig:"IP_ADDR"`
}

Config represents service configuration for dp-census-alpha-api-proxy

func Get

func Get() (*Config, error)

Get returns the default config with any modifications through environment variables

func (*Config) GetAuthToken

func (c *Config) GetAuthToken() string

Jump to

Keyboard shortcuts

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