config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdminConfig

func GetAdminConfig() *model.User

GetAdminConfig - Return admin config with given environment vars

Types

type DBConfig

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

DBConfig - Base DB Config

func GetDBConfig

func GetDBConfig() *DBConfig

GetDBConfig - Return DB config with given environment vars

type RedisConfig

type RedisConfig struct {
	Addr     string
	Password string
	DB       int
}

RedisConfig - Base Redis Config

func GetRedisConfig

func GetRedisConfig() *RedisConfig

GetRedisConfig - Return redis config with given environment vars

Jump to

Keyboard shortcuts

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