Documentation
¶
Index ¶
Constants ¶
View Source
const (
VERSION = "0.0.5"
)
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
Types ¶
type ApiConfig ¶
type ApiConfig struct {
Key string `json:"key"`
Redirect string `json:"redirect"`
Login string `json:"login"`
Access string `json:"access"`
Role string `json:"role"`
Logout string `json:"logout"`
Name string `json:"name"`
Token string `json:"token"`
Map string `json:"map"`
Contact string `json:"contact"`
}
type BossConfig ¶
type CacheConfig ¶
type CacheConfig struct {
Enabled bool `json:"enabled"`
Redis string `json:"redis"`
Idle int `json:"idle"`
Max int `json:"max"`
Timeout *TimeoutConfig `json:"timeout"`
}
type FalconPortalConfig ¶
type GlobalConfig ¶
type GlobalConfig struct {
Log string `json:"log"`
Company string `json:"company"`
Cache *CacheConfig `json:"cache"`
Http *HttpConfig `json:"http"`
Salt string `json:"salt"`
CanRegister bool `json:"canRegister"`
Ldap *LdapConfig `json:"ldap"`
Uic *UicConfig `json:"uic"`
GraphDB *GraphDBConfig `json:"graphdb"`
BossDB *BossConfig `json:"boss"`
FalconPortal *FalconPortalConfig `json:"falcon_portal"`
Shortcut *ShortcutConfig `json:"shortcut"`
Api *ApiConfig `json:"api"`
Graph *GraphConfig `json:"graph"`
Grpc *GrpcConfig `json:"grpc"`
Mq *MqConfig `json:"mq"`
}
func Config ¶
func Config() *GlobalConfig
type GraphConfig ¶
type GraphDBConfig ¶
type GrpcConfig ¶
type HttpConfig ¶
type LdapConfig ¶
type ShortcutConfig ¶
type TimeoutConfig ¶
Click to show internal directories.
Click to hide internal directories.