teststorage

package
v2.0.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 TestStorage

type TestStorage struct {
	*tsdb.DB
	// contains filtered or unexported fields
}

func New

func New(t testutil.T) *TestStorage

New returns a new TestStorage for testing purposes that removes all associated files on closing.

func (TestStorage) AppendExemplar

func (s TestStorage) AppendExemplar(ref uint64, l labels.Labels, e exemplar.Exemplar) (uint64, error)

func (TestStorage) Close

func (s TestStorage) Close() error

func (TestStorage) ExemplarAppender

func (s TestStorage) ExemplarAppender() storage.ExemplarAppender

func (TestStorage) ExemplarQueryable

func (s TestStorage) ExemplarQueryable() storage.ExemplarQueryable

Jump to

Keyboard shortcuts

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