setting

package
v0.0.0-...-8b29e06 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseSetting = &Database{}
View Source
var ImageSetting = &Image{}
View Source
var RedisSetting = &Redis{}
View Source
var ServerSetting = &Server{}
View Source
var SmtpSetting = &Smtp{}

Functions

func UpdateItemValue

func UpdateItemValue(section, key, value string)

Types

type Database

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

type Image

type Image struct {
	ImageSavePath   string
	ImageMaxSize    int
	ImageAlloweXts  string
	ImageAllowExts  []string
	RuntimeRootPath string
}

type Redis

type Redis struct {
	RedisHost        string
	RedisPassword    string
	RedisMaxidle     int
	RedisMaxActive   int
	RedisIdleTimeout time.Duration
}

type Server

type Server struct {
	RunMode        string
	HttpPort       int
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	LogPath        string
	PageSize       int
	JwtSecret      string
	ViewUrl        string
	UploadUrl      string
	UploadPath     string
	LogoMobileUrl  string
	LogoPcUrl      string
	LogoWaterUrl   string
	Sitename       string
	Sitebrief      string
	Siteseoword    string
	Timezone       string
	Lang           string
	Runlevel       int
	RunlevelReason string

	CookieDomain string
	CookiePath   string

	PostlistPagesize     int
	CacheThreadListPages int
	OnlineUpdateSpan     int
	OnlineHoldTime       time.Duration
	SessionDelayUpdate   int
	UploadImageWidth     int
	OrderDefault         string
	AttachDirSaveRule    string

	UpdateViewsOn     int
	UserCreateEmailOn int
	UserCreateOn      int
	UserResetpwOn     int
	AdminBindIp       int
	CdnOn             int
	UrlRewriteOn      int
	DisabledPlugin    int
	Version           string
	StaticVersion     string
	Installed         int

	RuntimeRootPath string
	LogSavePath     string
	LogSaveName     string
	TimeFormat      string
	LogFileExt      string
}

type Smtp

type Smtp struct {
	EmailUser string
	EmailPass string
	EmailHost string
	EmailPort string
}

Jump to

Keyboard shortcuts

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