config

package
v0.0.0-...-2362eb5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 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 {
	Server    ServerConfig
	Database  *Database
	DebugMode bool

	GitHubClientID         string `mapstructure:"GITHUB_OAUTH_CLIENT_ID"`
	GitHubClientSecret     string `mapstructure:"GITHUB_OAUTH_CLIENT_SECRET"`
	GitHubOAuthRedirectUrl string `mapstructure:"GITHUB_OAUTH_REDIRECT_URL"`

	TokenLifeTime        int
	RefreshTokenLifeTime int
	PrivateKey           string
	Salt                 string
}
var Conf *Config = nil

func GetConfig

func GetConfig() *Config

type Database

type Database struct {
	DbDBName   string
	DbHost     string
	DbPort     string
	DbUserName string
	DbPassword string
}

func SetupDB

func SetupDB() *Database

type ServerConfig

type ServerConfig struct {
	Address string
	Port    int
}

Jump to

Keyboard shortcuts

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