setting

package
v0.0.0-...-d3c2a3e Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RunMode string

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

Functions

func Setup

func Setup()

Types

type App

type App struct {
	JWTSecret string

	ImagePrefixUrl string
	ImageSavePath  string
	ImageMaxSize   int
	ImageAllowExts []string

	LogSavePath string
	LogFileExt  string
	TimeFormat  string
}

type Database

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

type Server

type Server struct {
	HTTPPort     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