settings

package
v0.0.0-...-bed5851 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseConf = &Database{}
View Source
var ServerConf = &Server{}

Functions

func InitConf

func InitConf()

Types

type Database

type Database struct {
	Type     string
	User     string
	Password string
	Host     string
	Name     string
	MaxIdle  int
	MaxOpen  int
}

type Server

type Server struct {
	RunMode      string
	HTTPPort     int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

Jump to

Keyboard shortcuts

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