config

package
v0.0.0-...-2717cb5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 2 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 {
	HTTPServerHost        string        `mapstructure:"HTTP_SERVER_HOST"`
	HTTPServerPort        string        `mapstructure:"HTTP_SERVER_PORT"`
	FrondendURL           string        `mapstructure:"FRONDEND_URL"`
	MongoDBURL            string        `mapstructure:"MONGODB_URL"`
	DatabaseName          string        `mapstructure:"DATABASE_NAME"`
	AccountCollectionName string        `mapstructure:"ACCOUNT_COLLECTION_NAME"`
	SymmectricTokenKey    string        `mapstructure:"SYMMETRIC_TOKEN_KEY"`
	AccessTokenDuration   time.Duration `mapstructure:"ACCESS_TOKEN_DURATION"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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