config

package
v0.0.0-...-d66a43f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Confs = Config{}

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessToken  string `mapstructure:"AccessToken"`
	RefreshToken string `mapstructure:"RefreshToken"`
}

type Config

type Config struct {
	Port       string  `mapstructure:"Port"`
	PostgresDB Posgres `mapstructure:"PostgresDB"`
	Redis      Redis   `mapstructure:"RedisDB"`
	RedisJWT   Redis   `mapstructure:"RedisJWT"`
	Auth       Auth    `mapstructure:"Auth"`
}

func (*Config) Load

func (g *Config) Load(path string) error

type Posgres

type Posgres struct {
	Host     string `mapstructure:"Host"`
	Port     string `mapstructure:"Port"`
	DBName   string `mapstructure:"DBName"`
	User     string `mapstructure:"User"`
	Password string `mapstructure:"Password"`
}

type Redis

type Redis struct {
	Host     string `mapstructure:"Host"`
	Port     string `mapstructure:"Port"`
	Password string `mapstructure:"Password"`
	DBName   int    `mapstructure:"DBName"`
}

Jump to

Keyboard shortcuts

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