Documentation
¶
Index ¶
- type CacheStore
- func (_m *CacheStore) Delete(ctx context.Context, key string) error
- func (_m *CacheStore) Get(ctx context.Context, key string, out interface{}) (bool, error)
- func (_m *CacheStore) GetMulti(ctx context.Context, keys []string, out interface{}) ([]bool, error)
- func (_m *CacheStore) Set(ctx context.Context, key string, value interface{}, expiration time.Duration)
- type CachedRepository
- func (_m *CachedRepository) Create(ctx context.Context, value interface{}) error
- func (_m *CachedRepository) FindByKey(ctx context.Context, keyFieldName string, id interface{}) (datarepo.Result, error)
- func (_m *CachedRepository) FindByKeys(ctx context.Context, keyFieldName string, ids interface{}) ([]datarepo.Result, error)
- func (_m *CachedRepository) PartialUpdate(ctx context.Context, value interface{}) error
- func (_m *CachedRepository) Update(ctx context.Context, value interface{}) error
- type DataFetcher
- type DataWriter
- type ReadOnlyCachedRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStore ¶
CacheStore is an autogenerated mock type for the CacheStore type
func (*CacheStore) Delete ¶
func (_m *CacheStore) Delete(ctx context.Context, key string) error
Delete provides a mock function with given fields: ctx, key
type CachedRepository ¶
CachedRepository is an autogenerated mock type for the CachedRepository type
func (*CachedRepository) Create ¶
func (_m *CachedRepository) Create(ctx context.Context, value interface{}) error
Create provides a mock function with given fields: ctx, value
func (*CachedRepository) FindByKey ¶
func (_m *CachedRepository) FindByKey(ctx context.Context, keyFieldName string, id interface{}) (datarepo.Result, error)
FindByKey provides a mock function with given fields: ctx, keyFieldName, id
func (*CachedRepository) FindByKeys ¶
func (_m *CachedRepository) FindByKeys(ctx context.Context, keyFieldName string, ids interface{}) ([]datarepo.Result, error)
FindByKeys provides a mock function with given fields: ctx, keyFieldName, ids
func (*CachedRepository) PartialUpdate ¶ added in v0.3.0
func (_m *CachedRepository) PartialUpdate(ctx context.Context, value interface{}) error
PartialUpdate provides a mock function with given fields: ctx, value
type DataFetcher ¶
DataFetcher is an autogenerated mock type for the DataFetcher type
func (*DataFetcher) FindByKey ¶
func (_m *DataFetcher) FindByKey(ctx context.Context, keyFieldName string, id interface{}) (datarepo.Result, error)
FindByKey provides a mock function with given fields: ctx, keyFieldName, id
func (*DataFetcher) FindByKeys ¶
func (_m *DataFetcher) FindByKeys(ctx context.Context, keyFieldName string, ids []interface{}) ([]datarepo.Result, error)
FindByKeys provides a mock function with given fields: ctx, keyFieldName, ids
type DataWriter ¶
DataWriter is an autogenerated mock type for the DataWriter type
func (*DataWriter) Create ¶
func (_m *DataWriter) Create(ctx context.Context, value interface{}) error
Create provides a mock function with given fields: ctx, value
func (*DataWriter) PartialUpdate ¶ added in v0.3.0
func (_m *DataWriter) PartialUpdate(ctx context.Context, value interface{}) error
PartialUpdate provides a mock function with given fields: ctx, value
type ReadOnlyCachedRepository ¶
ReadOnlyCachedRepository is an autogenerated mock type for the ReadOnlyCachedRepository type
func (*ReadOnlyCachedRepository) FindByKey ¶
func (_m *ReadOnlyCachedRepository) FindByKey(ctx context.Context, keyFieldName string, id interface{}) (datarepo.Result, error)
FindByKey provides a mock function with given fields: ctx, keyFieldName, id
func (*ReadOnlyCachedRepository) FindByKeys ¶
func (_m *ReadOnlyCachedRepository) FindByKeys(ctx context.Context, keyFieldName string, ids interface{}) ([]datarepo.Result, error)
FindByKeys provides a mock function with given fields: ctx, keyFieldName, ids