setting

package
v0.0.0-...-1911912 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 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 DingtalkSetting = &Dingtalk{}
View Source
var EAppSetting = &EApp{}
View Source
var FsdjEappSetting = &FsdjEapp{}
View Source
var MsgAppSetting = &MsgApp{}
View Source
var RedisSetting = &Redis{}
View Source
var ServerSetting = &Server{}
View Source
var YdksAppSetting = &YdksApp{}

Functions

func Setup

func Setup()

Setup initialize the configuration instance

Types

type App

type App struct {
	JwtSecret      string
	PrefixUrl      string
	AppPrefixUrl   string
	LoginUrl       string
	TokenTimeout   int64
	DingtalkMsgUrl string

	RuntimeRootPath string

	ImageSavePath  string
	ImageMaxSize   int
	ImageAllowExts []string

	ExportSavePath string
	QrCodeSavePath string
	FontSavePath   string

	LogSavePath string
	LogSaveName string
	LogFileExt  string
	TimeFormat  string
}

type Database

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

type Dingtalk

type Dingtalk struct {
	CorpID       string
	OapiHost     string
	CallBackHost string
	Token        string
	AesKey       string
}

type EApp

type EApp struct {
	AgentID   string
	AppKey    string
	AppSecret string
	Domain    string
}

type FsdjEapp

type FsdjEapp struct {
	AgentID   string
	AppKey    string
	AppSecret string
	Domain    string

	FsdjSavePath string
}

type MsgApp

type MsgApp struct {
	AgentID   string
	AppKey    string
	AppSecret string
	Domain    string
}

type Redis

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

type Server

type Server struct {
	RunMode      string
	HttpPort     int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type YdksApp

type YdksApp struct {
	AgentID   string
	AppKey    string
	AppSecret string
	Domain    string

	YdksSavePath string
	FlowLimit    int
}

Jump to

Keyboard shortcuts

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