Documentation
¶
Index ¶
Constants ¶
View Source
const ( NACOS string = "nacos" ETCD string = "etcd" )
Backend represents a KV Store Backend
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery interface { GetServices() []*ServiceInstance WatchService() <-chan []*ServiceInstance Close() }
type ServiceInstance ¶
type ServiceInstance struct { // ID is the unique instance ID as registered. ID string `json:"id"` // Name is the service name as registered. Name string `json:"name"` // Version is the version of the compiled. Version string `json:"version"` // Endpoint addresses of the service instance. Endpoint *config.Listener }
ServiceInstance is an instance of a service in a discovery system.
func (ServiceInstance) String ¶
func (p ServiceInstance) String() string
Click to show internal directories.
Click to hide internal directories.