commandstore

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 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 Store

type Store interface {
	ListUnhandledCommands(ctx context.Context, pipedID string) ([]*model.Command, error)
	AddCommand(ctx context.Context, command *model.Command) error
	GetCommand(ctx context.Context, id string) (*model.Command, error)
	UpdateCommandHandled(ctx context.Context, id string, status model.CommandStatus, metadata map[string]string, unhandledAt int64) error
}

func NewStore

func NewStore(ds datastore.DataStore, c cache.Cache, logger *zap.Logger) Store

Jump to

Keyboard shortcuts

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