Documentation ¶
Index ¶
- Constants
- Variables
- func AddDefaultContextValue(ctx context.Context) context.Context
- func Configure()
- func CreateServiceRequest() *registry.CreateServiceRequest
- func GenerateAccountKey(name string) string
- func GenerateConsumerDependencyQueueKey(domainProject, consumerID, uuid string) string
- func GenerateConsumerDependencyRuleKey(domainProject string, in *registry.MicroServiceKey) string
- func GenerateDomainKey(domain string) string
- func GenerateInstanceKey(domainProject string, serviceID string, instanceID string) string
- func GenerateInstanceLeaseKey(domainProject string, serviceID string, instanceID string) string
- func GenerateMetricsKey(name, utc, domain string) string
- func GenerateProjectKey(domain, project string) string
- func GenerateProviderDependencyRuleKey(domainProject string, in *registry.MicroServiceKey) string
- func GenerateRBACSecretKey() string
- func GenerateRuleIndexKey(domainProject string, serviceID string, attr string, pattern string) string
- func GenerateServiceAliasKey(key *registry.MicroServiceKey) string
- func GenerateServiceDependencyRuleKey(serviceType string, domainProject string, in *registry.MicroServiceKey) string
- func GenerateServiceIndexKey(key *registry.MicroServiceKey) string
- func GenerateServiceKey(domainProject string, serviceID string) string
- func GenerateServiceRuleKey(domainProject string, serviceID string, ruleID string) string
- func GenerateServiceSchemaKey(domainProject string, serviceID string, schemaID string) string
- func GenerateServiceSchemaSummaryKey(domainProject string, serviceID string, schemaID string) string
- func GenerateServiceTagKey(domainProject string, serviceID string) string
- func GetDomainRootKey() string
- func GetExistenceRequest() *registry.GetExistenceRequest
- func GetInfoFromDependencyQueueKV(key []byte) (consumerID, domainProject, uuid string)
- func GetInfoFromDependencyRuleKV(key []byte) (t string, _ *registry.MicroServiceKey)
- func GetInfoFromDomainKV(key []byte) (domain string)
- func GetInfoFromInstKV(key []byte) (serviceID, instanceID, domainProject string)
- func GetInfoFromProjectKV(key []byte) (domainProject string)
- func GetInfoFromRuleKV(key []byte) (serviceID, ruleID, domainProject string)
- func GetInfoFromSchemaKV(key []byte) (domainProject, serviceID, schemaID string)
- func GetInfoFromSchemaSummaryKV(key []byte) (domainProject, serviceID, schemaID string)
- func GetInfoFromSvcAliasKV(key []byte) *registry.MicroServiceKey
- func GetInfoFromSvcIndexKV(key []byte) *registry.MicroServiceKey
- func GetInfoFromSvcKV(key []byte) (serviceID, domainProject string)
- func GetInfoFromTagKV(key []byte) (serviceID, domainProject string)
- func GetInstanceLeaseRootKey(domainProject string) string
- func GetInstanceRootKey(domainProject string) string
- func GetMetricsRootKey() string
- func GetProjectRootKey(domain string) string
- func GetRootKey() string
- func GetServerInfoKey() string
- func GetServiceAliasRootKey(domainProject string) string
- func GetServiceAppKey(domainProject, env, appID string) string
- func GetServiceDependencyQueueRootKey(domainProject string) string
- func GetServiceDependencyRootKey(domainProject string) string
- func GetServiceDependencyRuleRootKey(domainProject string) string
- func GetServiceIndexRootKey(domainProject string) string
- func GetServiceRequest(serviceID string) *registry.GetServiceRequest
- func GetServiceRootKey(domainProject string) string
- func GetServiceRuleIndexRootKey(domainProject string) string
- func GetServiceRuleRootKey(domainProject string) string
- func GetServiceSchemaRootKey(domainProject string) string
- func GetServiceSchemaSummaryRootKey(domainProject string) string
- func GetServiceTagRootKey(domainProject string) string
- func HeartbeatRequest() *registry.HeartbeatRequest
- func Initialize()
- func IsDefaultDomainProject(domainProject string) bool
- func IsSCInstance(ctx context.Context) bool
- func IsShared(key *registry.MicroServiceKey) bool
- func KvToResponse(key []byte) (keys []string)
- func ParseCommandLine()
- func RegisterInstanceRequest() *registry.RegisterInstanceRequest
- func SetSharedMode()
- func UnregisterInstanceRequest() *registry.UnregisterInstanceRequest
Constants ¶
View Source
const ( SPLIT = "/" RegistryRootKey = "cse-sr" RegistrySysKey = "sys" RegistryServiceKey = "ms" RegistryInstanceKey = "inst" RegistryFile = "files" RegistryIndex = "indexes" RegistryRuleKey = "rules" RegistryRuleIndexKey = "rule-indexes" RegistryDomainKey = "domains" RegistryProjectKey = "projects" RegistryAliasKey = "alias" RegistryTagKey = "tags" RegistrySchemaKey = "schemas" RegistrySchemaSummaryKey = "schema-sum" RegistryLeaseKey = "leases" RegistryDependencyKey = "deps" RegistryDepsRuleKey = "dep-rules" RegistryDepsQueueKey = "dep-queue" RegistryMetricsKey = "metrics" DepsQueueUUID = "0" DepsConsumer = "c" DepsProvider = "p" )
View Source
const ( RegistryDomain = "default" RegistryProject = "default" RegistryDomainProject = "default/default" RegistryAppID = "default" RegistryServiceName = "SERVICECENTER" RegistryServiceAlias = "SERVICECENTER" RegistryDefaultLeaseRenewalinterval int32 = 30 RegistryDefaultLeaseRetrytimes int32 = 3 CtxScSelf = "_sc_self" CtxScRegistry = "_registryOnly" )
View Source
const (
InitVersion = "0"
)
Variables ¶
View Source
var ( ServiceAPI proto.ServiceCtrlServer InstanceAPI proto.ServiceInstanceCtrlServerEx Service *registry.MicroService Instance *registry.MicroServiceInstance )
View Source
var ServerInfo = proto.NewServerInformation()
Functions ¶
func CreateServiceRequest ¶
func CreateServiceRequest() *registry.CreateServiceRequest
func GenerateAccountKey ¶
func GenerateConsumerDependencyRuleKey ¶
func GenerateConsumerDependencyRuleKey(domainProject string, in *registry.MicroServiceKey) string
func GenerateDomainKey ¶
func GenerateInstanceKey ¶
func GenerateMetricsKey ¶
func GenerateProjectKey ¶
func GenerateProviderDependencyRuleKey ¶
func GenerateProviderDependencyRuleKey(domainProject string, in *registry.MicroServiceKey) string
func GenerateRBACSecretKey ¶
func GenerateRBACSecretKey() string
func GenerateRuleIndexKey ¶
func GenerateServiceAliasKey ¶
func GenerateServiceAliasKey(key *registry.MicroServiceKey) string
func GenerateServiceDependencyRuleKey ¶
func GenerateServiceDependencyRuleKey(serviceType string, domainProject string, in *registry.MicroServiceKey) string
func GenerateServiceIndexKey ¶
func GenerateServiceIndexKey(key *registry.MicroServiceKey) string
func GenerateServiceKey ¶
func GenerateServiceRuleKey ¶
func GenerateServiceTagKey ¶
func GetDomainRootKey ¶
func GetDomainRootKey() string
func GetExistenceRequest ¶
func GetExistenceRequest() *registry.GetExistenceRequest
func GetInfoFromDependencyRuleKV ¶
func GetInfoFromDependencyRuleKV(key []byte) (t string, _ *registry.MicroServiceKey)
func GetInfoFromDomainKV ¶
func GetInfoFromInstKV ¶
func GetInfoFromProjectKV ¶
func GetInfoFromRuleKV ¶
func GetInfoFromSchemaKV ¶
func GetInfoFromSvcAliasKV ¶
func GetInfoFromSvcAliasKV(key []byte) *registry.MicroServiceKey
func GetInfoFromSvcIndexKV ¶
func GetInfoFromSvcIndexKV(key []byte) *registry.MicroServiceKey
func GetInfoFromSvcKV ¶
func GetInfoFromTagKV ¶
func GetInstanceLeaseRootKey ¶
func GetInstanceRootKey ¶
func GetMetricsRootKey ¶
func GetMetricsRootKey() string
func GetProjectRootKey ¶
func GetRootKey ¶
func GetRootKey() string
func GetServerInfoKey ¶
func GetServerInfoKey() string
func GetServiceAliasRootKey ¶
func GetServiceAppKey ¶
func GetServiceIndexRootKey ¶
func GetServiceRequest ¶
func GetServiceRequest(serviceID string) *registry.GetServiceRequest
func GetServiceRootKey ¶
func GetServiceRuleRootKey ¶
func GetServiceSchemaRootKey ¶
func GetServiceTagRootKey ¶
func HeartbeatRequest ¶
func HeartbeatRequest() *registry.HeartbeatRequest
func Initialize ¶
func Initialize()
func IsDefaultDomainProject ¶
func IsSCInstance ¶
func IsShared ¶
func IsShared(key *registry.MicroServiceKey) bool
func KvToResponse ¶
func ParseCommandLine ¶
func ParseCommandLine()
func RegisterInstanceRequest ¶
func RegisterInstanceRequest() *registry.RegisterInstanceRequest
func SetSharedMode ¶
func SetSharedMode()
func UnregisterInstanceRequest ¶
func UnregisterInstanceRequest() *registry.UnregisterInstanceRequest
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.