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 TopoServInfo
- type WebServerInfo
Constants ¶
View Source
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" CC_SERVNOTICE_BASEPATH = "/cc/services/notice" CC_SERVLIMITER_BASEPATH = "/cc/services/limiter" CC_DISCOVERY_PREFIX = "cc_" )
zk path
View Source
const ( 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" CC_MODULE_CORESERVICE = "coreservice" GSE_MODULE_PROCSERVER = "gseprocserver" // CC_MODULE_SYNCHRONZESERVER multiple cmdb synchronize data server CC_MODULE_SYNCHRONZESERVER = "sync" CC_MODULE_OPERATION = "operation" CC_MODULE_TASK = "task" CC_MODULE_CLOUD = "cloud" CC_MODULE_AUTH = "auth" )
cc modules
View Source
const ( CCFunctionalityServicediscover = "servicediscover" CCFunctionalityMongo = "mongo" CCFunctionalityRedis = "redis" )
cc functionality define
View Source
const ( CCConfigureRedis = "redis" CCConfigureMongo = "mongodb" CCConfigureCommon = "common" CCConfigureExtra = "extra" )
Variables ¶
View Source
var AllModule = map[string]bool{ 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, CC_MODULE_CORESERVICE: true, CC_MODULE_OPERATION: true, CC_MODULE_TASK: true, CC_MODULE_CLOUD: true, CC_MODULE_AUTH: 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"` RegisterIP string `json:"registerip"` HostName string `json:"hostname"` Scheme string `json:"scheme"` Version string `json:"version"` Pid int `json:"pid"` // UUID is used to distinguish which service is master in zookeeper UUID string `json:"uuid"` }
ServerInfo define base server information
func NewServerInfo ¶
func NewServerInfo(conf *config.CCAPIConfig) (*ServerInfo, error)
NewServerInfo new a ServerInfo object
func (*ServerInfo) Instance ¶
func (s *ServerInfo) Instance() string
func (*ServerInfo) RegisterAddress ¶
func (s *ServerInfo) RegisterAddress() string
Address convert struct to host address
Click to show internal directories.
Click to hide internal directories.