datastore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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