config

package
v0.0.0-...-9921cdc Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr                     string       `default:":7417"`
	LogLevel                 logrus.Level `default:"debug"`
	PostgresDSN              string       `default:"host=localhost user=postgres password=postgrespw dbname=postgres port=49153 sslmode=disable"`
	StorageBucketEndpoint    string       `envconfig:"STORAGE_BUCKET_ENDPOINT"`
	StorageBucketName        string       `envconfig:"STORAGE_BUCKET_NAME"`
	StorageBucketAccessKeyID string       `envconfig:"STORAGE_BUCKET_ACCESS_KEY_ID"`
	StorageBucketSecretKey   string       `envconfig:"STORAGE_BUCKET_SECRET_KEY"`
	FallbackFilePath         string       `default:"./files"`
	DefaultDomainID          uint         `default:"1"`
}

func MustLoad

func MustLoad() *Config

Jump to

Keyboard shortcuts

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