Documentation
¶
Index ¶
- type Api
- type Config
- func (config *Config) GetBooleanOrDefault(section string, name string, defaultValue bool) bool
- func (config *Config) GetInt(section, name string) int
- func (config *Config) GetIntOrDefault(section string, name string, defaultValue int) int
- func (config *Config) GetString(section, name string) string
- func (config *Config) GetStringOrDefault(section string, name string, defaultValue string) string
- func (config *Config) Init(webPort int, apiPort int, rootPath string) error
- func (config *Config) ReadSetInfo() *SetInfo
- func (config *Config) UpdateSetInfo(setInfo *SetInfo) error
- type Manage
- type Mysql
- type Schedule
- type SetInfo
- type Sqlite
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetBooleanOrDefault ¶
func (*Config) GetIntOrDefault ¶
func (*Config) GetStringOrDefault ¶
func (*Config) ReadSetInfo ¶
func (*Config) UpdateSetInfo ¶
type SetInfo ¶
type SetInfo struct {
HasInit bool `json:"hasInit"`
DbType string `json:"dbType"`
CachePath string `json:"cachePath"`
Sqlite *Sqlite `json:"sqlite"`
Mysql *Mysql `json:"mysql"`
Manage *Manage `json:"manage"`
Api *Api `json:"api"`
IsDocker bool `json:"isDocker"`
Schedule *Schedule `json:"schedule"`
}
Click to show internal directories.
Click to hide internal directories.