interfaces

package
v1.3.1-0...-2eb6d4b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClient

type DBClient interface {
	KeeperKeys(key string, keyOnly bool, isRaw bool) ([]models.KVResponse, errors.EdgeX)
	AddKeeperKeys(kv models.KVS, isFlatten bool) ([]models.KeyOnly, errors.EdgeX)
	DeleteKeeperKeys(key string, isRecurse bool) ([]models.KeyOnly, errors.EdgeX)

	AddRegistration(r models.Registration) (models.Registration, errors.EdgeX)
	DeleteRegistrationByServiceId(id string) errors.EdgeX
	Registrations() ([]models.Registration, errors.EdgeX)
	RegistrationByServiceId(id string) (models.Registration, errors.EdgeX)
	UpdateRegistration(r models.Registration) errors.EdgeX
}

type Registry

type Registry interface {
	// Register registers a service with the registration information,
	// and health check its status periodically
	Register(r models.Registration)
	// DeregisterByServiceId de-registers a service by its id and stops
	// health checking its status
	DeregisterByServiceId(id string)
}

Registry defines the functionalities of a registry service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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