Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
Title string
SystemLanguage string
BeginTime time.Time
RestTime [][]time.Time
EndTime time.Time
Duration uint
SeparateFrontend bool
Sentry bool
Port string
Salt string
FlagPrefix string
FlagSuffix string
CheckDownScore int
AttackScore int
}
Base is the basic config of the cardinal.
type Config ¶
type Config struct {
Base `toml:"base";gorm:"-"`
MySQL `toml:"mysql";gorm:"-"`
*DynamicConfig
}
Config is the config of the cardinal.
type DynamicConfig ¶ added in v0.6.0
DynamicConfig is the config which is stored in database. So it's a GORM model for users can edit it anytime.
Click to show internal directories.
Click to hide internal directories.