types

package
v0.0.0-...-cb472e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

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 EventServInfo

type EventServInfo struct {
	ServerInfo
}

EventServInfo topo 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 ProcServInfo

type ProcServInfo struct {
	ServerInfo
}

ProcServInfo proc 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

type TopoServInfo

type TopoServInfo struct {
	ServerInfo
}

TopoServInfo topo server information

type WebServerInfo

type WebServerInfo struct {
	ServerInfo
}

WebServerInfo web server information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL