config

package
v0.0.0-...-ea178e4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	HTTP           http.Config `yaml:"http"`
	PSQL           psql.Config `yaml:"psql"`
	PurgeOnRestart bool        `yaml:"purge_on_restart"`
	JwtPrivateKey  string      `env:"JWT_PRIVATE_KEY" validate:"required"`
	SentryDSN      string      `env:"SENTRY_DSN"`
}

AppConfig represents the configuration of our application.

func (*AppConfig) Get

func (*AppConfig) Get() (*AppConfig, error)

func (*AppConfig) Set

func (*AppConfig) Set(appConfig AppConfig)

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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