config

package
v0.0.0-...-39d7215 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT 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 {
	DB                   *DBConfig
	HashID               *HashID
	GoogleOauthConfig    *GoogleOauthConfig
	AdminsGMailAddresses []string
	SecretJWT            string
	Port                 string
}

func LoadConfig

func LoadConfig() *Config

type DBConfig

type DBConfig struct {
	Dialect  string
	Username string
	Password string
	Host     string
	Port     int
	Name     string
	Charset  string
}

type GoogleOauthConfig

type GoogleOauthConfig struct {
	ClientID     string
	ClientSecret string
}

type HashID

type HashID struct {
	Salt      string
	MinLength int
}

Jump to

Keyboard shortcuts

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