setting

package
v0.0.0-...-f970f26 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AppSetting ...
	AppSetting = &App{}
	// ServerSetting ...
	ServerSetting = &Server{}
	// DatabaseSetting ...
	DatabaseSetting = &Database{}
)

Functions

func Setup

func Setup()

Setup ...

Types

type App

type App struct {
	PrefixURL string

	RuntimeRootPath string

	LogSavePath string
	LogSaveName string
	LogFileExt  string
	TimeFormat  string
}

App ...

type Database

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

Database ...

type Server

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

Server ...

Jump to

Keyboard shortcuts

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