modcfg

package
v0.0.0-...-3a93896 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	New,
)

Functions

This section is empty.

Types

type Spec

type Spec struct {
	Env         string `envconfig:"ENV" default:"production" required:"true"`
	HTTPPort    string `envconfig:"PORT" default:"8000" required:"true"`
	LogLevel    string `envconfig:"LOG_LEVEL" default:"INFO" required:"true"`
	LogEncType  string `envconfig:"LOG_ENC_TYPE" default:"pretty" required:"true"`
	PostgresDSN string `envconfig:"DATABASE_URL" required:"true"`

	SentryDSN string `envconfig:"SENTRY_DSN"`
	SentryENV string `envconfig:"SENTRY_ENVIRONMENT"`
}

func New

func New() (*Spec, error)

Jump to

Keyboard shortcuts

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