setting

package
v0.0.0-...-596715f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseSetting = &Database{}
View Source
var RedisSetting = &Redis{}

Functions

func Setup

func Setup()

Setup initialize the configuration instance

Types

type Database

type Database struct {
	Type     string
	User     string
	Password string
	Host     string
	Name     string
}

type Redis

type Redis struct {
	Host        string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
}

Jump to

Keyboard shortcuts

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