config

package
v0.0.0-...-381594c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 AppConfig

type AppConfig struct {
	Env   string
	Url   string
	Debug string
	Port  string
}

func GetAppConfig

func GetAppConfig() *AppConfig

type DBConfig

type DBConfig struct {
	Connection string `default:"mysql"`
	Host       string `default:"127.0.0.1"`
	Port       string `default:"3306"`
	Database   string `default:"go-structure"`
	Username   string `default:"root"`
	Password   string `default:""`
}

func GetDBConfig

func GetDBConfig() *DBConfig

type RedisConfig

type RedisConfig struct {
	Enabled  string `default:"false"`
	Host     string `default:"127.0.0.1"`
	Port     string `default:"6379"`
	Password string `default:""`
	DB       string `default:"0"`
}

func GetRedisConfig

func GetRedisConfig() *RedisConfig

Jump to

Keyboard shortcuts

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