registry

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL