config

package
v0.0.0-...-468e309 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvDEV  envType = "DEV"
	EnvPROD envType = "PROD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Env               envType
	Port              int
	AllowedOrigins    []string
	DatabaseUser      string
	DatabasePassword  string
	DatabaseName      string
	SessionSecret     string
	JWTPublicKey      *rsa.PublicKey
	JWTPrivateKey     *rsa.PrivateKey
	RedisAddr         string
	RedisPassword     string
	RedisDatabase     int
	S3Region          *string
	S3Bucket          *string
	S3Endpoint        *string
	S3ForcePathStyle  *bool
	SupervisorAddr    string
	SupervisorKeyPath string
}

func (*Config) IsDev

func (c *Config) IsDev() bool

Jump to

Keyboard shortcuts

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