config

package
v0.0.0-...-9ee4844 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 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 {
	DB    *DBConfig
	OAuth *OAuthConfig
	JWT   *JWTConfig
}

func GetConfig

func GetConfig() *Config

type DBConfig

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

type JWTConfig

type JWTConfig struct {
	SecretKey []byte
}

type OAuthConfig

type OAuthConfig struct {
	ClientID     string
	ClientSecret string
	RedirecURI   string
	Host         string
}

Jump to

Keyboard shortcuts

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