Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	rest.RestConf
	Auth struct {
		AccessSecret string
		AccessExpire int64
	}
	CaptchaConf        captcha.CaptchaConfig // 验证码配置
	ProjectConf        ProjectConfig         // 项目配置
	I18nConf           last_i18n.Config      // 国际化配置
	CoreRpc            zrpc.RpcClientConf
	RedisConf          config.RedisConfig
	CasbinConf         casbin.CasbinConf     `json:",optional"`
	CasbinDatabaseConf config.DatabaseConfig `json:",optional"`
}

type ProjectConfig

type ProjectConfig struct {
	RegisterRoleValue string `json:",default=admin"` // 注册用户默认角色
}

Jump to

Keyboard shortcuts

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