datastore

package
v0.0.0-...-db7731e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {

	// WriteInstance persists the given instance to the underlying storage
	WriteInstance(instance service.ServiceInstance) error

	// GetInstance retrieves a persisted instance from the underlying storage by
	// instance id
	GetInstance(instanceID string) (service.ServiceInstance, bool, error)

	// DeleteInstance deletes a persisted instance from the underlying storage by
	// instance id
	DeleteInstance(instanceID string) (bool, error)

	// TestConnection tests the connection to the underlying database (if there
	// is one)
	TestConnection() error
}

Store is an interface to be implemented by types capable of handling persistence for other broker-related types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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