Documentation ¶
Index ¶
- Variables
- func MustLoadAPPConfig(fpaths ...string)
- func PrintWithJSON()
- type APPConfig
- type CORS
- type Captcha
- type Casbin
- type CreatorObject
- type CreatorPolicy
- type CreatorRole
- type DefaultPolicy
- type GZIP
- type Gorm
- type HTTP
- type JWTAuth
- type Log
- type LogGormHook
- type LogHook
- type LogMongoHook
- type Menu
- type Monitor
- type MySQL
- type Postgres
- type RateLimiter
- type Redis
- type Root
- type Sqlite3
Constants ¶
This section is empty.
Variables ¶
View Source
var (
C = new(APPConfig)
)
Functions ¶
func PrintWithJSON ¶
func PrintWithJSON()
Types ¶
type APPConfig ¶
type APPConfig struct { RunMode string WWW string Swagger bool PrintConfig bool HTTP HTTP Menu Menu Casbin Casbin Log Log LogGormHook LogGormHook LogMongoHook LogMongoHook Root Root JWTAuth JWTAuth Monitor Monitor Captcha Captcha RateLimiter RateLimiter CORS CORS GZIP GZIP Redis Redis Gorm Gorm MySQL MySQL Postgres Postgres Sqlite3 Sqlite3 }
func (*APPConfig) IsDebugMode ¶
type CreatorObject ¶
type CreatorPolicy ¶
type CreatorRole ¶
type DefaultPolicy ¶
type DefaultPolicy struct { CreatorObject []*CreatorObject `toml:"creator_object"` CreatorRole []*CreatorRole `toml:"creator_role"` CreatorPolicy []*CreatorPolicy `toml:"creator_policy"` }
func NewDefaultPolicyByFile ¶
func NewDefaultPolicyByFile(policypath string) (*DefaultPolicy, error)
func (*DefaultPolicy) GetCreatorObject ¶
func (f *DefaultPolicy) GetCreatorObject() ([]*CreatorObject, error)
func (*DefaultPolicy) GetCreatorPolicy ¶
func (f *DefaultPolicy) GetCreatorPolicy() ([]*CreatorPolicy, error)
func (*DefaultPolicy) GetCreatorRole ¶
func (f *DefaultPolicy) GetCreatorRole() ([]*CreatorRole, error)
type LogGormHook ¶
type LogMongoHook ¶
type LogMongoHook struct {
Collection string
}
type MySQL ¶
type Postgres ¶
type RateLimiter ¶
Click to show internal directories.
Click to hide internal directories.