config

package
v0.0.0-...-dae3ebb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = new(configStruct)

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Level      string `mapstructure:"level"`
	LogFile    int    `mapstructure:"logfile"`
	MaxSize    string `mapstructure:"max_size"`
	MaxAge     string `mapstructure:"max_age"`
	MaxBackups string `mapstructure:"max_backups"`
}

type Mysql

type Mysql struct {
	Host         string `mapstructure:"host"`
	Port         int    `mapstructure:"port"`
	User         string `mapstructure:"user"`
	Password     string `mapstructure:"password"`
	Dbname       string `mapstructure:"dbname"`
	MaxIdleConns int    `mapstructure:"max_idle_conns"`
	MaxOpenConns int    `mapstructure:"max_open_conns"`
}

type Redis

type Redis struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
	Auth string `mapstructure:"auth"`
}

Jump to

Keyboard shortcuts

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