Documentation ¶
Index ¶
- type Blackhole
- func (s *Blackhole) Count() int
- func (s *Blackhole) EngineStatus(ctx context.Context) (model.Event, error)
- func (s *Blackhole) GetFields(context.Context) (model.FieldGroups, error)
- func (s *Blackhole) GetResource(ctx context.Context, id string) (*model.Resource, error)
- func (s *Blackhole) GetResources(ctx context.Context, query []byte) (model.ResourcesResponse, error)
- func (s *Blackhole) Ping() error
- func (s *Blackhole) SetWriteError(err error)
- func (s *Blackhole) Stats(context.Context) (model.Stats, error)
- func (s *Blackhole) WriteEvent(ctx context.Context, event model.Event) error
- func (s *Blackhole) WriteResources(ctx context.Context, resources model.Resources) error
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) EngineStatus ¶ added in v0.0.11
func (*Blackhole) GetResource ¶
func (*Blackhole) GetResources ¶
func (*Blackhole) SetWriteError ¶
func (*Blackhole) WriteEvent ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.