setting

package
v0.0.0-...-b8d1666 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppSetting = &App{}
View Source
var DatabaseSetting = &Database{}
View Source
var MailSetting = &Mail{}
View Source
var RedisSetting = &Redis{}
View Source
var ServerSetting = &Server{}

Functions

func SetUp

func SetUp()

Types

type App

type App struct {
	PageSize  int
	JwtSecret string

	RuntimeRootPath string

	LogSavePath string
	LogSaveName string
	LogFileExt  string
	TimeFormat  string

	PrefixUrl      string
	ImageSavePath  string
	ImageMaxSize   int
	ImageAllowExts []string
}

type Database

type Database struct {
	Type         string
	Username     string
	Password     string
	Host         string
	Port         int
	TableName    string
	MaxIdleConns int
	MaxOpenConns int
}

type Mail

type Mail struct {
	Host     string
	Port     int
	Username string
	Password string
}

type Redis

type Redis struct {
	Host        string
	Port        int
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
}

type Server

type Server struct {
	RunMode      string
	Swagger      bool
	Port         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