configs

package
v0.0.0-...-39205ac Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

Load the Current Configuration

Types

type Config

type Config struct {
	DB     DBConfig
	Server ConfigServer
	JWT    JWTToken
}
var CFG *Config

type ConfigServer

type ConfigServer struct {
	Url             string
	ReadTimeout     int
	TlsEnable       bool
	TlsCertificate  string
	TlsKeyFile      string
	CookieSecretKey string
}

type DBConfig

type DBConfig struct {
	Host     string
	Port     string
	Password string
	User     string
	DBName   string
	SSLMode  string
}

type JWTToken

type JWTToken struct {
	KeySecret        string
	KeyExpireMinutes int
}

Jump to

Keyboard shortcuts

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