mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 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 CacheStore

type CacheStore struct {
	mock.Mock
}

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

func (*CacheStore) Get

func (_m *CacheStore) Get(ctx context.Context, key string, out interface{}) (bool, error)

Get provides a mock function with given fields: ctx, key, out

func (*CacheStore) GetMulti

func (_m *CacheStore) GetMulti(ctx context.Context, keys []string, out interface{}) ([]bool, error)

GetMulti provides a mock function with given fields: ctx, keys, out

func (*CacheStore) Set

func (_m *CacheStore) Set(ctx context.Context, key string, value interface{}, expiration time.Duration)

Set provides a mock function with given fields: ctx, key, value, expiration

type CachedRepository

type CachedRepository struct {
	mock.Mock
}

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

func (*CachedRepository) Update

func (_m *CachedRepository) Update(ctx context.Context, value interface{}) error

Update provides a mock function with given fields: ctx, value

type DataFetcher

type DataFetcher struct {
	mock.Mock
}

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

type DataWriter struct {
	mock.Mock
}

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

func (*DataWriter) Update

func (_m *DataWriter) Update(ctx context.Context, value interface{}) error

Update provides a mock function with given fields: ctx, value

type ReadOnlyCachedRepository

type ReadOnlyCachedRepository struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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