package registry

import "github.com/edgexfoundry/go-mod-registry/registry"

Index

Types

type Client

type Client interface {
	// Registers the current service with Registry for discover and health check
	Register() error

	// Un-registers the current service with Registry for discover and health check
	Unregister() error

	// Registers a
	RegisterCheck(id string, name string, notes string, url string, interval string) error

	// Simply checks if Registry is up and running at the configured URL
	IsAlive() bool

	// Gets the service endpoint information for the target ID from the Registry
	GetServiceEndpoint(serviceId string) (types.ServiceEndpoint, error)

	// Checks with the Registry if the target service is available, i.e. registered and healthy
	IsServiceAvailable(serviceId string) (bool, error)
}

func NewRegistryClient

func NewRegistryClient(registryConfig types.Config) (Client, error)

Source Files

factory.go interface.go

Version
v0.1.27 (latest)
Published
Dec 11, 2020
Platform
linux/amd64
Imports
3 packages
Last checked
4 days ago

Tools for package owners.