config

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnv

func ReadEnv(v string, defaultValue string) string

ReadEnv returns the value from the environment and if not found fallbacks to the default value

Types

type Config

type Config struct {
	Port             string
	PotPublicKeys    []*rsa.PublicKey
	PublicKey        *rsa.PublicKey
	PrivateKey       *rsa.PrivateKey
	ResponseContext  string
	ParameterContext string
	AccuweatherToken string
	BypassSignature  bool
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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