setting

package
v0.0.0-...-1f55c80 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppSetting    = &App{}
	ServerSetting = &Server{}
)

统一实例化设置对象

Functions

func SetUp

func SetUp()

SetUp 设置初始化函数

Types

type App

type App struct {
	RuntimeRootPath string
	TemplatePath    string
	LogSavePath     string
	LogSaveName     string
	LogFileExt      string
	TimeFormat      string
	ProxyURL        string
	ProxyTarget     string
	APIAddr         string
	BashPath        string
}

App 设置对象

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