mock

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	storage.Storage

	SetTypeResult(storage.Type)
	SetErrorBehavior(storage.ErrorBehavior)
	LastFetchOptions() *storage.FetchOptions
	SetFetchResult(*storage.FetchResult, error)
	SetFetchResults(...*storage.FetchResult)
	SetSearchSeriesResult(*storage.SearchResults, error)
	SetCompleteTagsResult(*consolidators.CompleteTagsResult, error)
	SetWriteResult(error)
	SetFetchBlocksResult(block.Result, error)
	SetQueryStorageMetadataAttributesResult([]storagemetadata.Attributes, error)
	SetCloseResult(error)
	Writes() []*storage.WriteQuery
}

Storage implements storage.Storage and provides methods to help read what was written and set what to retrieve.

func NewMockStorage

func NewMockStorage() Storage

NewMockStorage creates a new mock Storage instance.

Jump to

Keyboard shortcuts

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