config

package
v0.0.0-...-c5376a2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type Config

type Config struct {
	Mysql Mysql
	Redis Redis
}

type Mysql

type Mysql struct {
	DriverName     string `json:"driver"`
	DataSourceName string `json:"data_source"`
	MaxIdleConn    int    `json:"max_idle"`
	MaxOpenConn    int    `json:"max_open"`
}

func GetMysql

func GetMysql() Mysql

type Redis

type Redis struct {
	Addr     string `json:"addr"`
	Password string `json:"password"`
	DB       int    `json:"db"`
}

func GetRedis

func GetRedis() Redis

Jump to

Keyboard shortcuts

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