mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func (*Provider) Driver

func (_m *Provider) Driver() string

Driver provides a mock function with given fields:

func (*Provider) Ping

func (_m *Provider) Ping() error

Ping provides a mock function with given fields:

func (*Provider) Store

func (_m *Provider) Store() store.StoreInterface

Store provides a mock function with given fields:

func (*Provider) Validate

func (_m *Provider) Validate() error

Validate provides a mock function with given fields:

type StoreInterface

type StoreInterface struct {
	mock.Mock
}

StoreInterface is an autogenerated mock type for the StoreInterface type

func (*StoreInterface) Clear

func (_m *StoreInterface) Clear(ctx context.Context) error

Clear provides a mock function with given fields: ctx

func (*StoreInterface) Delete

func (_m *StoreInterface) Delete(ctx context.Context, key interface{}) error

Delete provides a mock function with given fields: ctx, key

func (*StoreInterface) Get

func (_m *StoreInterface) Get(ctx context.Context, key interface{}) (interface{}, error)

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

func (*StoreInterface) GetType

func (_m *StoreInterface) GetType() string

GetType provides a mock function with given fields:

func (*StoreInterface) GetWithTTL

func (_m *StoreInterface) GetWithTTL(ctx context.Context, key interface{}) (interface{}, time.Duration, error)

GetWithTTL provides a mock function with given fields: ctx, key

func (*StoreInterface) Invalidate

func (_m *StoreInterface) Invalidate(ctx context.Context, options store.InvalidateOptions) error

Invalidate provides a mock function with given fields: ctx, options

func (*StoreInterface) Set

func (_m *StoreInterface) Set(ctx context.Context, key interface{}, value interface{}, options *store.Options) error

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

Jump to

Keyboard shortcuts

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