Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlipaySettingS ¶
type AppSettingS ¶
type AppSettingS struct { // 默认页面大小 DefaultPageSize int // 最大页面大小 MaxPageSize int // 默认上下文超时时间 DefaultContextTimeout time.Duration // 日志保存路径 LogSavePath string // 日志文件名 LogFileName string // 日志文件扩展名 LogFileExt string // 上传保存路径 UploadSavePath string // 上传临时路径 TempPath string // 上传服务器URL UploadServerUrl string // 上传图片最大尺寸 UploadImageMaxSize int // 上传图片允许的扩展名 UploadImageAllowExts []string }
type EmailSettingS ¶
type EmailSettingS struct { // Host is the hostname of the email server Host string // Port is the port number of the email server Port int // UserName is the username for the email server UserName string // Password is the password for the email server Password string // IsSSL is a boolean value indicating whether the email server is SSL or not IsSSL bool // From is the email address that will be used as the sender of the email From string // To is an array of email addresses that will be used as the recipients of the email To []string }
type OSSSettingS ¶
type OSSSettingS struct { // Enable Enable bool // BucketName is the name of the bucket BucketName string // Endpoint is the endpoint of the OSS Endpoint string // AccessKeyID is the access key ID AccessKeyID string // AccessKeySecret is the access key secret AccessKeySecret string }
OSSSettingS struct
type SecuritySettingS ¶
type SecuritySettingS struct { // TokenAuthKey 认证密钥 TokenAuthKey string // EnableHtmlEncrypt 是否启用html加密 EnableHtmlEncrypt bool // HtmlEncryptKey html加密密钥 HtmlEncryptKey string AuthToken string }
SecuritySettingS struct
type ServerSettingS ¶
type ServerSettingS struct { // RunMode is a string that holds the run mode of the server RunMode string // HttpPort is a string that holds the http port of the server HttpPort string // ReadTimeout is a duration that holds the read timeout of the server ReadTimeout time.Duration // WriteTimeout is a duration that holds the write timeout of the server WriteTimeout time.Duration // PrivateHttpListen is a string that holds the private http listen address of the server PrivateHttpListen string }
ServerSettingS is a struct that holds the server settings
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
func NewSetting ¶
func (*Setting) ReadSection ¶
func (*Setting) ReloadAllSection ¶
func (*Setting) WatchSettingChange ¶
func (s *Setting) WatchSettingChange()
Click to show internal directories.
Click to hide internal directories.