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: 6

Documentation

Index

Constants

This section is empty.

Variables

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

统一实例化设置对象

Functions

func SetUp

func SetUp()

SetUp 设置初始化函数

Types

type App

type App struct {
	RuntimeRootPath string
	VideoPath       string
	TemplatePath    string
	LogSavePath     string
	LogSaveName     string
	LogFileExt      string
	TimeFormat      string
	ImageAllowExts  []string
}

App 设置对象

type Limiter

type Limiter struct {
	MaxUploadSize int64
	MaxLinkNum    int
}

Limiter 视频播放限制对象

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