env

package
v0.0.0-...-78446d3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 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 {
	APIServerPortRange string `env:"API_SERVER_PORT_RANGE" envDefault:"6060"`
	IsDebug            bool   `env:"IS_DEBUG"`
	SlackHookURL       string `env:"SLACKHOOKURL"`
	SlackChannel       string `env:"SLACKCHANNEL"`
	InternalAPIsToken  string `env:"INTERNAL_APIS_TOKEN"`
	CommentronToken    string `env:"COMMENTRON_TOKEN"`
	BlockchainToken    string `env:"BLOCKCHAIN_TOKEN"`
}

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