configs

package
v0.0.0-...-22b531f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Config

type Config struct {
	Mysql  Mysql
	Redis  Redis
	Server Server
	Jwt    Jwt
	Mongo  Mongo
}
var EnvConfig *Config

func LoadConfig

func LoadConfig() *Config

type Jwt

type Jwt struct {
	Secret string
}

type Mongo

type Mongo struct {
	Host     string
	Port     int
	User     string
	Password string
	DataBase string
}

type Mysql

type Mysql struct {
	Host     string
	Port     int
	User     string
	Password string
	DataBase string
}

type Redis

type Redis struct {
	Host     string
	Port     int
	UserName string
	Password string
	Db       int
}

type Server

type Server struct {
	GinMode string
	Port    string
}

Jump to

Keyboard shortcuts

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