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

# README

Service-Center Client for Go-Chassis

Build Status This is a service-center client which helps the microservice to interact with Service-Center for service-registration, discovery, instance registration and dependency management.

This client implements all the api's of Service-Center.

# Packages

No description provided by the author

# Functions

GetInstance Get registry pool instance.
NewCommonException creates a generic exception.
NewIOException create and IO exception.
NewJSONException creates a JSON exception.
RegroupInstances organize raw data to better format.
RoundRobin Gives the next object in sequence.
WithGlobal query resources include other aggregated SC.
WithoutRevision ignore current revision number.

# Constants

APIPath is a constant of type string.
Define constants for the client.
Define constants for the client.
CheckByHeartbeat is a constant of type string.
Define constants for the client.
DefaultLeaseRenewalInterval is a constant of type int which declares default lease renewal time.
Define constants for the client.
Define constants for the client.
EnvCheckSCIInterval sc instance health check interval in second.
Define constants for the client.
EventCreate is a constant of type string.
EventDelete is a constant of type string.
EventError is a constant of type string.
EventUpdate is a constant of type string.
Define constants for the client.
Define constants for the client.
Define constants for the client.
Define constants for the client.
Define constants for the client.
Define constants for the client.
MicorserviceUp is a constant of type string.
MicroserviceDown is a constant of type string.
Define constants for the client.
MSIinstanceDown is a constant of type string.
MSInstanceUP is a constant of type string.
Define constants for the client.
Define constants for the client.
Define constants for the client.
Define constants for the client.

# Variables

ErrEmptyCriteria means you gave an empty list of criteria.
ErrMicroServiceExists means service is registered.
ErrMicroServiceNotExists means service is not exists.
ErrNoneAvailable create a new error with Message No available.
ErrNotModified means instance is not changed.
Define variables for the client.
Define variables for the client.
Define variables for the client.

# Structs

AddressPool registry address pool.
AppsResponse is a struct with list of app ID's.
CallOptions is options when you call a API.
DataCenterInfo is a struct with contains the zone information of the data center.
DependencyMicroService is a struct to keep dependency information for the microservice.
ExistenceIDResponse is a structure for microservice with serviceID, schemaID and InstanceID.
Framework is a struct which contains name and version of the Framework.
GetServicesInfoResponse is a struct to keep all the list of services.
HealthCheck is struct with contains mode, port and interval of sc from which it needs to poll information.
MicroServiceDependency is a struct to keep the all the dependency information.
MicroServiceInstanceChangedEvent is a struct to store the Changed event information.
MicroServiceInstanceKey is a struct to key ID's of the microservice.
MicroServiceInstanceRequest is struct with microservice instance information.
MicroServiceInstancesResponse is a struct with instances information.
MicroServiceKey is a struct with key information about Microservice.
MicroServiceProvideresponse is a struct with provider information.
MicroServiceRequest is a struct with microservice information.
MircroServiceDependencyRequest is a struct with dependencies request.
Options is the list of dynamic parameter's which can be passed to the RegistryClient while creating a new client.
RegistryClient is a structure for the client to communicate to Service-Center.
RegistryConfig is a structure to store registry configurations like address of cc, ssl configurations and tenant name.
RegistryException structure contains message and error information for the exception caused by service-center.
ServiceDetail is a struct to store all the relevant information for a microservice.
ServicePath is a struct with path and property information.
URLBuilder is the string builder to build request url.

# Type aliases

CallOption is receiver for options and chang the attribute of it.
Next gives the next object in the list.
URLParameter maintains the list of parameters to be added in URL.