Documentation ¶
Index ¶
- Constants
- func NewEdgeServiceDiscovery(options registry.Options) registry.ServiceDiscovery
- type EdgeServiceDiscovery
- func (esd *EdgeServiceDiscovery) AutoSync()
- func (esd *EdgeServiceDiscovery) Close() error
- func (esd *EdgeServiceDiscovery) FindMicroServiceInstances(consumerID, microServiceName string, tags utiltags.Tags) ([]*registry.MicroServiceInstance, error)
- func (esd *EdgeServiceDiscovery) GetAllMicroServices() ([]*registry.MicroService, error)
- func (esd *EdgeServiceDiscovery) GetMicroService(microServiceID string) (*registry.MicroService, error)
- func (esd *EdgeServiceDiscovery) GetMicroServiceID(appID, microServiceName, version, env string) (string, error)
- func (esd *EdgeServiceDiscovery) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
Constants ¶
View Source
const (
// EdgeRegistry constants string
EdgeRegistry = "edge"
)
Variables ¶
This section is empty.
Functions ¶
func NewEdgeServiceDiscovery ¶
func NewEdgeServiceDiscovery(options registry.Options) registry.ServiceDiscovery
Types ¶
type EdgeServiceDiscovery ¶
type EdgeServiceDiscovery struct {
Name string
}
EdgeServiceDiscovery to represent the object of service center to call the APIs of service center
func (*EdgeServiceDiscovery) AutoSync ¶
func (esd *EdgeServiceDiscovery) AutoSync()
AutoSync updating the cache manager
func (*EdgeServiceDiscovery) Close ¶
func (esd *EdgeServiceDiscovery) Close() error
Close close all websocket connection
func (*EdgeServiceDiscovery) FindMicroServiceInstances ¶
func (esd *EdgeServiceDiscovery) FindMicroServiceInstances(consumerID, microServiceName string, tags utiltags.Tags) ([]*registry.MicroServiceInstance, error)
FindMicroServiceInstances find micro-service instances (subnets)
func (*EdgeServiceDiscovery) GetAllMicroServices ¶
func (esd *EdgeServiceDiscovery) GetAllMicroServices() ([]*registry.MicroService, error)
GetAllMicroServices Get all MicroService information.
func (*EdgeServiceDiscovery) GetMicroService ¶
func (esd *EdgeServiceDiscovery) GetMicroService(microServiceID string) (*registry.MicroService, error)
GetMicroService return service
func (*EdgeServiceDiscovery) GetMicroServiceID ¶
func (esd *EdgeServiceDiscovery) GetMicroServiceID(appID, microServiceName, version, env string) (string, error)
GetMicroServiceID get microServiceID
func (*EdgeServiceDiscovery) GetMicroServiceInstances ¶
func (esd *EdgeServiceDiscovery) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
GetMicroServiceInstances return instances
Click to show internal directories.
Click to hide internal directories.