interfaces

package
v0.2.0-dev.31 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 2 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.
	Store(o models.StoredObject) error

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

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

	// UpdateRetryCount modifies the RetryCount variable for a given object.
	UpdateRetryCount(id string, count int) error

	// RemoveFromStore removes an object from the data store.
	RemoveFromStore(id string) error

	// NewClient provides a factory for building a StoreClient
	NewClient(config db.Configuration) (StoreClient, error)
}

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

Jump to

Keyboard shortcuts

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