Documentation ¶
Overview ¶
* @Author: reel * @Date: 2023-05-16 20:17:56 * @LastEditors: reel * @LastEditTime: 2023-09-09 11:33:23 * @Description: 系统配置相关操作
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IsLoad bool `json:"-"` Port string `json:"port" binding:"required"` User string `json:"user" binding:"required"` Pwd string `json:"password" binding:"required"` Pwd2 string `json:"password2" binding:"required,eqfield=Pwd"` DataPath string `json:"data_path" binding:"required"` // 项目数据路径, 包括日志, 本地缓存, 本地db, 本地其他文件等 // Email string `json:"email" binding:"required"` // DB配置 DbType string `json:"db_type" binding:"required"` DBName string `json:"db_name" binding:"required"` DBHost string `json:"db_host"` DBPort string `json:"db_port"` DBUser string `json:"db_user"` DBPwd string `json:"db_pwd"` // 缓存配置 CacheType string `json:"cache_type" binding:"required"` CacheName string `json:"cache_name" binding:"required"` CacheHost string `json:"cache_host"` CachePort string `json:"cache_port"` CacheUser string `json:"cache_user"` CachePwd string `json:"cache_pwd"` }
Click to show internal directories.
Click to hide internal directories.