config

package
v0.0.0-...-2d539fd 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: 0 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
	NodeId           string
	AllowedOrigins   []string
	GrpcPort         int
	GrpcCertPath     string
	GrpcKeyPath      string
	JWTPublicPath    string
	DatabaseUser     string
	DatabasePassword string
	DatabaseName     string
	RedisAddr        string
	RedisPassword    string
	RedisDatabase    int
	S3Region         *string
	S3Bucket         *string
	S3Endpoint       *string
	S3ForcePathStyle *bool
}

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