Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionConfig ¶
AdmissionConfig represents the configuration of casbin
type Config ¶
type Config struct {
Addr string
PidFile string
TLSCert string
TLSKey string
LogLevel string
LogFormatter string
LogFilePath string
Maintenance bool
Database DatabaseConfig
Admission AdmissionConfig
Redis RedisConfig
Session SessionConfig
}
type DatabaseConfig ¶
type DatabaseConfig struct {
Driver string
DSN string
TablePrefix string
AutoMigrate bool
LogMode bool
MaxIdleConns int
MaxOpenConns int
ConnMaxLifetime int
}
DatabaseConfig represents the configuration of a mysql/sqlite3/postgres database
type InitData ¶
type InitData struct {
Roles []Role
Permissions []Permission
}
type Permission ¶
type RedisConfig ¶
RedisConfig represents the configuration related to redis cache & session store.
type SessionConfig ¶
Click to show internal directories.
Click to hide internal directories.