Documentation ¶
Index ¶
- Constants
- Variables
- func ParseConfig(cfg string)
- func SetConfig(newConfig *GlobalConfig)
- type ApiConfig
- type ContactsConfig
- type DbConfig
- type GinHttpConfig
- type GlobalConfig
- type GraphConfig
- type GraphDB
- type GrpcConfig
- type HostsConfig
- type HttpConfig
- type NetConfig
- type NqmConfig
- type NqmLogConfig
Constants ¶
View Source
const (
VERSION = "1.4.3"
)
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type ApiConfig ¶
type ApiConfig struct { Name string `json:"name"` Token string `json:"token"` Contact string `json:"contact"` Dashboard string `json:"dashboard"` Event string `json:"event"` Geo string `json:"geo"` Map string `json:"map"` Max int `json:"max"` Platform string `json:"platform"` Query string `json:"query"` Uplink string `json:"uplink"` }
type ContactsConfig ¶
type GinHttpConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` RootDir string `json:"root_dir"` Http *HttpConfig `json:"http"` Contacts *ContactsConfig `json:"contacts"` Hosts *HostsConfig `json:"hosts"` Deviations *NetConfig `json:"deviations"` Net *NetConfig `json:"net"` Speed *NetConfig `json:"speed"` Api *ApiConfig `json:"api"` Graph *GraphConfig `json:"graph"` Db *DbConfig `json:"db"` ApolloDB *DbConfig `json:"apollodb"` BossDB *DbConfig `json:"bossdb"` Local string `json:"local"` NqmLog *NqmLogConfig `json:"nqmlog"` Nqm *NqmConfig `json:"nqm"` Grpc *GrpcConfig `json:"grpc"` GinHttp *GinHttpConfig `json:"gin_http"` GraphDB *GraphDB `json:"graphdb"` Fe string `json:"fe"` }
type GraphConfig ¶
type GrpcConfig ¶
type HostsConfig ¶
type HttpConfig ¶
type NqmLogConfig ¶
type NqmLogConfig struct {
ServiceUrl string `json:"serviceUrl"`
}
Click to show internal directories.
Click to hide internal directories.