config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port
	SendgridAPIKey
	SlackAPIKey
	TwilioAccountID
	TwilioAuthToken
	TwilioPhoneNumber
	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
	TwilioAccountID         string
	TwilioAuthToken         string
	TwilioPhoneNumber       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