datastore

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackhole

type Blackhole struct {
	// contains filtered or unexported fields
}

Datastore implementation that drops all inserted data, but keeps track of number of resources written (returned via Stats()) Useful for tests, and can return a provided error on write

func (*Blackhole) Count

func (s *Blackhole) Count() int

func (*Blackhole) EngineStatus added in v0.0.11

func (s *Blackhole) EngineStatus(ctx context.Context) (model.Event, error)

func (*Blackhole) GetFields

func (s *Blackhole) GetFields(context.Context) (model.FieldGroups, error)

func (*Blackhole) GetResource

func (s *Blackhole) GetResource(ctx context.Context, id string) (*model.Resource, error)

func (*Blackhole) GetResources

func (s *Blackhole) GetResources(ctx context.Context, query []byte) (model.ResourcesResponse, error)

func (*Blackhole) Ping

func (s *Blackhole) Ping() error

func (*Blackhole) SetWriteError

func (s *Blackhole) SetWriteError(err error)

func (*Blackhole) Stats

func (s *Blackhole) Stats(context.Context) (model.Stats, error)

func (*Blackhole) WriteEvent added in v0.0.11

func (s *Blackhole) WriteEvent(ctx context.Context, event model.Event) error

func (*Blackhole) WriteResources

func (s *Blackhole) WriteResources(ctx context.Context, resources model.Resources) error

Jump to

Keyboard shortcuts

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