env

package
v0.0.0-...-39b8527 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 2 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 {
	ChainQueryDsn    string `env:"CHAINQUERY_DSN"`
	SyncStateDir     string `env:"SYNCSTATEDIR"`
	ElasticSearchURL string `env:"ELASTICSEARCHURL"`
	InternalAPIDSN   string `env:"INTERNALAPIS_DSN"`
	APIURL           string `env:"API_URL"`
	APIToken         string `env:"API_TOKEN"`
	SlackHookURL     string `env:"SLACKHOOKURL"`
	SlackChannel     string `env:"SLACKCHANNEL"`
	SlackID          string `env:"SLACK_ID"`
}

Config holds the environment configuration used by lighthouse.

func NewWithEnvVars

func NewWithEnvVars() (*Config, error)

NewWithEnvVars creates an Config from environment variables

Jump to

Keyboard shortcuts

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