Documentation ¶
Index ¶
- Constants
- Variables
- type APIServerServInfo
- type AuditControllerServInfo
- type DataCollectionServInfo
- type EventServInfo
- type HostControllerServInfo
- type HostServerInfo
- type MigrateControllerServInfo
- type MigrateServInfo
- type ObjectControllerServInfo
- type ProcControllerServInfo
- type ProcServInfo
- type ServerInfo
- type Time
- type TopoServInfo
- type WebServerInfo
Constants ¶
const ( CC_SERV_BASEPATH = "/cc/services/endpoints" CC_SERVCONF_BASEPATH = "/cc/services/config" CC_SERVERROR_BASEPATH = "/cc/services/errors" CC_SERVLANG_BASEPATH = "/cc/services/language" )
zk path
const ( CC_MODULE_AUDITCONTROLLER = "auditcontroller" CC_MODULE_HOSTCONTROLLER = "hostcontroller" CC_MODULE_OBJECTCONTROLLER = "objectcontroller" CC_MODULE_PROCCONTROLLER = "proccontroller" CC_MODULE_DATACOLLECTION = "datacollection" CC_MODULE_HOST = "host" CC_MODULE_MIGRATE = "migrate" CC_MODULE_PROC = "proc" CC_MODULE_TOPO = "topo" CC_MODULE_APISERVER = "apiserver" CC_MODULE_WEBSERVER = "webserver" CC_MODULE_EVENTSERVER = "eventserver" GSE_MODULE_PROCSERVER = "gseprocserver" )
cc modules
const ( CCFunctionalityServicediscover = "servicediscover" CCFunctionalityMongo = "mongo" CCFunctionalityRedis = "redis" )
cc functionality define
Variables ¶
var AllModule = map[string]bool{ CC_MODULE_AUDITCONTROLLER: true, CC_MODULE_HOSTCONTROLLER: true, CC_MODULE_OBJECTCONTROLLER: true, CC_MODULE_PROCCONTROLLER: true, CC_MODULE_DATACOLLECTION: true, CC_MODULE_HOST: true, CC_MODULE_MIGRATE: true, CC_MODULE_PROC: true, CC_MODULE_TOPO: true, CC_MODULE_APISERVER: true, CC_MODULE_WEBSERVER: true, CC_MODULE_EVENTSERVER: true, }
AllModule all cc module
Functions ¶
This section is empty.
Types ¶
type APIServerServInfo ¶
type APIServerServInfo struct {
ServerInfo
}
APIServerServInfo apiserver informaiton
type AuditControllerServInfo ¶
type AuditControllerServInfo struct {
ServerInfo
}
AuditControllerServInfo audit-controller server information
type DataCollectionServInfo ¶
type DataCollectionServInfo struct {
ServerInfo
}
DataCollectionServInfo data-conllection server information
type HostControllerServInfo ¶
type HostControllerServInfo struct {
ServerInfo
}
HostControllerServInfo host-controller server information
type HostServerInfo ¶
type HostServerInfo struct {
ServerInfo
}
HostServerInfo host server information
type MigrateControllerServInfo ¶
type MigrateControllerServInfo struct {
ServerInfo
}
MigrateControllerServInfo migrate-controller server information
type MigrateServInfo ¶
type MigrateServInfo struct {
ServerInfo
}
MigrateServInfo migrate server information
type ObjectControllerServInfo ¶
type ObjectControllerServInfo struct {
ServerInfo
}
ObjectControllerServInfo object-controller server information
type ProcControllerServInfo ¶
type ProcControllerServInfo struct {
ServerInfo
}
ProcControllerServInfo proc-controller server information
type ServerInfo ¶
type ServerInfo struct { IP string `json:"ip"` Port uint `json:"port"` HostName string `json:"hostname"` Scheme string `json:"scheme"` Version string `json:"version"` Pid int `json:"pid"` }
ServerInfo define base server information
type Time ¶
func (Time) MarshalJSON ¶
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format.