config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port
	SendgridAPIKey
	SlackAPIKey
	GracefulShutdownTimeout
	StructuredLogging
	DebugDumpRequests
	AllowEmailToDomains
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                    int
	SendgridAPIKey          string
	SlackAPIKey             string
	GracefulShutdownTimeout time.Duration
	StructuredLogging       bool
	DebugDumpRequests       bool
	AllowEmailToDomains     []string
}

Config is the struct that holds configuration values

func GetConfig

func GetConfig() *Config

GetConfig returns a pointer to the singleton Config object

Jump to

Keyboard shortcuts

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