package
1.4.0
Repository: https://github.com/leon-yc/ggs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddProviderToCache refresh provider simpleCache.
DoRegister for registering micro-service instances.
Enable create DefaultRegistrator.
GetIPIndex get ip corresponding source info.
GetProtocolList returns the protocol list.
GetProtocolMap returns the protocol map.
GetProvidersFromCache get local provider simpleCache.
HealthCheck is the function adds the instance to HealthChecker.
InstallContractDiscovery install contract service client.
InstallRegistrator install registrator plugin.
InstallServiceDiscovery install service discovery client.
MakeEndpointMap returns the endpoints map.
MakeEndpoints returns the endpoints.
Microservice2ServiceKeyStr prepares a microservice key.
NewDiscovery create discovery service.
NewIndexCache create a cache which saves and manage instances.
NewRegistrator return registrator.
RefreshCache is the function to filter changes between new pulling instances and simpleCache.
RegisterMicroservice register micro-service.
RegisterMicroserviceInstances register micro-service instances.
SetIPIndex save ip index.
URIs2Hosts return hosts and scheme.

# Constants

constant values for registry parameters.
constant values for registry parameters.
constant values for registry parameters.
DefaultExpireTime default expiry time is kept as 0.
constant values for registry parameters.
DefaultRetryTime default retry time.
constant values for registry parameters.
constant values for registry parameters.
constant values for registry parameters.
constant values for registry parameters.
constant values for registry parameters.

# Variables

DefaultAddr default address of service center.
DefaultContractDiscoveryService supplies contract discovery.
DefaultRegistrator is the client of registry, you can call the method of it to interact with microservice registry.
DefaultServiceDiscoveryService supplies service discovery.
HBService variable of heartbeat service.
InstanceEndpoints instance endpoints.
IsEnabled check enable.
MicroserviceInstanceIndex key: ServiceName, value: []instance.
ProvidersMicroServiceCache key: micro service name and appId, value: []*MicroService.
SchemaInterfaceIndexedCache key: schema interface name value: []*microservice.
SchemaServiceIndexedCache key: schema service name value: []*microservice.
SelfInstancesCache key: serviceID, value: []instanceID.

# Structs

DataCenterInfo represents micro-service data center info.
Definition struct represents types, xjavaclass, properities.
Framework struct having info about micro-service version, name.
HealthChecker is the struct judges the instance health in the removing simpleCache.
HeartbeatService heartbeat service.
HeartbeatTask heart beat task struct.
IndexCache return instances by criteria.
Item represents type of the schema.
MethodInfo represents method info.
MicroService struct having full info about micro-service.
MicroServiceDependency is for to represent dependencies of micro-service.
MicroServiceInstance struct having full info about micro-service instance.
Options having micro-service parameters.
Parameter represents schema parameters.
Response represents schema response.
Schema to represents schema info.
SchemaContent represents schema contents info.
SchemaContents represents array of schema contents.
SchemaValue represents additional info of schema.
ServicePath has info about service path and property.
SourceInfo represent the consumer service name and metadata.
WrapInstance is the struct defines an instance object with appID/serviceName/version.

# Interfaces

CacheIndex is a unified local instances cache manager.
ContractDiscovery fetch schema content from remote or local.
Registrator is the interface for developer to update information in service registry.
ServiceDiscovery fetch service and instances from remote or local.