mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 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 Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t mockConstructorTestingTNewStore) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Store) Add

func (_m *Store) Add(key string, value interface{}, sec time.Duration) bool

Add provides a mock function with given fields: key, value, sec

func (*Store) Flush

func (_m *Store) Flush() bool

Flush provides a mock function with given fields:

func (*Store) Forever

func (_m *Store) Forever(key string, value interface{}) bool

Forever provides a mock function with given fields: key, value

func (*Store) Forget

func (_m *Store) Forget(key string) bool

Forget provides a mock function with given fields: key

func (*Store) Get

func (_m *Store) Get(key string, def interface{}) interface{}

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

func (*Store) GetBool added in v1.1.0

func (_m *Store) GetBool(key string, def bool) bool

GetBool provides a mock function with given fields: key, def

func (*Store) GetInt added in v1.1.0

func (_m *Store) GetInt(key string, def int) int

GetInt provides a mock function with given fields: key, def

func (*Store) GetString added in v1.1.0

func (_m *Store) GetString(key string, def string) string

GetString provides a mock function with given fields: key, def

func (*Store) Has

func (_m *Store) Has(key string) bool

Has provides a mock function with given fields: key

func (*Store) Pull

func (_m *Store) Pull(key string, def interface{}) interface{}

Pull provides a mock function with given fields: key, def

func (*Store) Put

func (_m *Store) Put(key string, value interface{}, sec time.Duration) error

Put provides a mock function with given fields: key, value, sec

func (*Store) Remember

func (_m *Store) Remember(key string, ttl time.Duration, callback func() interface{}) (interface{}, error)

Remember provides a mock function with given fields: key, ttl, callback

func (*Store) RememberForever

func (_m *Store) RememberForever(key string, callback func() interface{}) (interface{}, error)

RememberForever provides a mock function with given fields: key, callback

func (*Store) WithContext added in v1.2.3

func (_m *Store) WithContext(ctx context.Context) cache.Store

WithContext provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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