Versions in this module Expand all Collapse all v0 v0.4.0 Jan 15, 2022 Changes in this version + func YAMLData(input string) map[string][]byte + type Cache struct + func NewCache(ds datastore.Getter) *Cache + func (ds *Cache) Get(ctx context.Context, keys ...string) (map[string][]byte, error) + type Counter struct + func NewCounter(ds datastore.Getter) *Counter + func (ds *Counter) Get(ctx context.Context, keys ...string) (map[string][]byte, error) + func (ds *Counter) Requests() [][]string + func (ds *Counter) Reset() + func (ds *Counter) Value() int + type DatastoreServer struct + RequestCount int + RequestedKeys [][]string + TS *httptest.Server + Values *datastoreValues + func NewDatastoreServer(closed <-chan struct{}, data map[string][]byte) *DatastoreServer + func (d *DatastoreServer) Requests() [][]string + func (d *DatastoreServer) ResetRequests() + func (d *DatastoreServer) Send(values map[string][]byte) + func (d *DatastoreServer) Update(ctx context.Context) (map[string][]byte, error) + type MockDatastore struct + func NewMockDatastore(closed <-chan struct{}, data map[string][]byte) *MockDatastore + func (d *MockDatastore) Get(ctx context.Context, keys ...string) (map[string][]byte, error) + func (d *MockDatastore) InjectError(err error) + func (d *MockDatastore) KeysRequested(keys ...string) bool + func (d *MockDatastore) Requests() [][]string + func (d *MockDatastore) ResetRequests() + func (d *MockDatastore) Send(data map[string][]byte) + func (d *MockDatastore) Update(ctx context.Context) (map[string][]byte, error) + type Stub map[string][]byte + func (s Stub) Get(_ context.Context, keys ...string) (map[string][]byte, error)