config

package
v0.0.0-...-db3ee06 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	AccessSecret  string
	RefreshSecret string
}

func LoadAuthConfig

func LoadAuthConfig() AuthConfig

type Config

type Config struct {
	Auth   AuthConfig
	DB     DBConfig
	HTTP   HTTPConfig
	Sentry SentryConfig
}

func NewConfig

func NewConfig() *Config

NewConfig func

type DBConfig

type DBConfig struct {
	User     string
	Password string
	Driver   string
	Name     string
	Host     string
	Port     string
}

func LoadDBConfig

func LoadDBConfig() DBConfig

type HTTPConfig

type HTTPConfig struct {
	Host       string
	Port       string
	ExposePort string
}

func LoadHTTPConfig

func LoadHTTPConfig() HTTPConfig

type SentryConfig

type SentryConfig struct {
	Dsn              string
	TracesSampleRate float64
}

func LoadSentryConfig

func LoadSentryConfig() SentryConfig

Jump to

Keyboard shortcuts

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