interfaces

package
v2.0.0-dev.54 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

interfaces establishes the contract required for any implementation of the export store functionality in a database provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreClient

type StoreClient interface {
	// Store persists a stored object to the data store and returns the assigned UUID.
	Store(o contracts.StoredObject) (id string, err error)

	// RetrieveFromStore gets an object from the data store.
	RetrieveFromStore(appServiceKey string) (objects []contracts.StoredObject, err error)

	// Update replaces the data currently in the store with the provided data.
	Update(o contracts.StoredObject) error

	// RemoveFromStore removes an object from the data store.
	RemoveFromStore(o contracts.StoredObject) error

	// Disconnect ends the connection.
	Disconnect() error
}

StoreClient establishes the contracts required to persist exported data before being forwarded.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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