config

package
v0.0.0-...-7e5dd20 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code2Session

type Code2Session struct {
	Code      string `mapstructure:"code"`
	AppId     string `mapstructure:"appId"`
	AppSecret string `mapstructure:"appSecret"`
}

微信小程序相关配置

type Config

type Config struct {
	Server       Server       `mapstructure:"server"`
	Mysql        Mysql        `mapstructure:"mysql"`
	Upload       Upload       `mapstructure:"upload"`
	Jwt          Jwt          `mapstructure:"jwt"`
	Cron         Cron         `mapstructure:"cron"`
	Code2Session Code2Session `mapstructure:"code2Session"`
	Feedback     Feedback     `mapstructure:"feedback"`
}

组合全部配置模型

type Cron

type Cron struct {
	Enable bool `mapstructure:"enable"`
}

定时任务配置

type Feedback

type Feedback struct {
	QqSmtp        string `mapstructure:"qqSmtp"`
	QqEmail       string `mapstructure:"qqEmail"`
	QqEmailSecret string `mapstructure:"qqEmailSecret"`
}

问题反馈配置

type Jwt

type Jwt struct {
	SigningKey string `mapstructure:"signingKey"`
}

用户认证配置

type Mysql

type Mysql struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
	Url      string `mapstructure:"url"`
}

MySQL数据源配置

type Server

type Server struct {
	Post string `mapstructure:"post"`
}

服务启动端口号配置

type Upload

type Upload struct {
	SavePath  string `mapstructure:"savePath"`
	AccessUrl string `mapstructure:"accessUrl"`
}

文件上传相关路径配置

Jump to

Keyboard shortcuts

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