mocks

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 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 Cache added in v1.10.2

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache added in v1.10.2

func NewCache(t mockConstructorTestingTNewCache) *Cache

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

func (*Cache) Add added in v1.10.2

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

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

func (*Cache) Decrement added in v1.10.2

func (_m *Cache) Decrement(key string, value ...int) (int, error)

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

func (*Cache) Flush added in v1.10.2

func (_m *Cache) Flush() bool

Flush provides a mock function with given fields:

func (*Cache) Forever added in v1.10.2

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

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

func (*Cache) Forget added in v1.10.2

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

Forget provides a mock function with given fields: key

func (*Cache) Get added in v1.10.2

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

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

func (*Cache) GetBool added in v1.10.2

func (_m *Cache) GetBool(key string, def ...bool) bool

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

func (*Cache) GetInt added in v1.10.2

func (_m *Cache) GetInt(key string, def ...int) int

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

func (*Cache) GetInt64 added in v1.10.2

func (_m *Cache) GetInt64(key string, def ...int64) int64

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

func (*Cache) GetString added in v1.10.2

func (_m *Cache) GetString(key string, def ...string) string

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

func (*Cache) Has added in v1.10.2

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

Has provides a mock function with given fields: key

func (*Cache) Increment added in v1.10.2

func (_m *Cache) Increment(key string, value ...int) (int, error)

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

func (*Cache) Lock added in v1.10.2

func (_m *Cache) Lock(key string, t ...time.Duration) cache.Lock

Lock provides a mock function with given fields: key, t

func (*Cache) Pull added in v1.10.2

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

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

func (*Cache) Put added in v1.10.2

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

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

func (*Cache) Remember added in v1.10.2

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

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

func (*Cache) RememberForever added in v1.10.2

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

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

func (*Cache) Store added in v1.10.2

func (_m *Cache) Store(name string) cache.Driver

Store provides a mock function with given fields: name

func (*Cache) WithContext added in v1.10.2

func (_m *Cache) WithContext(ctx context.Context) cache.Driver

WithContext provides a mock function with given fields: ctx

type Driver added in v1.10.2

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver added in v1.10.2

func NewDriver(t mockConstructorTestingTNewDriver) *Driver

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

func (*Driver) Add added in v1.10.2

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

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

func (*Driver) Decrement added in v1.10.2

func (_m *Driver) Decrement(key string, value ...int) (int, error)

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

func (*Driver) Flush added in v1.10.2

func (_m *Driver) Flush() bool

Flush provides a mock function with given fields:

func (*Driver) Forever added in v1.10.2

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

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

func (*Driver) Forget added in v1.10.2

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

Forget provides a mock function with given fields: key

func (*Driver) Get added in v1.10.2

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

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

func (*Driver) GetBool added in v1.10.2

func (_m *Driver) GetBool(key string, def ...bool) bool

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

func (*Driver) GetInt added in v1.10.2

func (_m *Driver) GetInt(key string, def ...int) int

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

func (*Driver) GetInt64 added in v1.10.2

func (_m *Driver) GetInt64(key string, def ...int64) int64

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

func (*Driver) GetString added in v1.10.2

func (_m *Driver) GetString(key string, def ...string) string

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

func (*Driver) Has added in v1.10.2

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

Has provides a mock function with given fields: key

func (*Driver) Increment added in v1.10.2

func (_m *Driver) Increment(key string, value ...int) (int, error)

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

func (*Driver) Lock added in v1.10.2

func (_m *Driver) Lock(key string, t ...time.Duration) cache.Lock

Lock provides a mock function with given fields: key, t

func (*Driver) Pull added in v1.10.2

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

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

func (*Driver) Put added in v1.10.2

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

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

func (*Driver) Remember added in v1.10.2

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

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

func (*Driver) RememberForever added in v1.10.2

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

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

func (*Driver) WithContext added in v1.10.2

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

WithContext provides a mock function with given fields: ctx

type Lock added in v1.10.2

type Lock struct {
	mock.Mock
}

Lock is an autogenerated mock type for the Lock type

func NewLock added in v1.10.2

func NewLock(t mockConstructorTestingTNewLock) *Lock

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

func (*Lock) Block added in v1.10.2

func (_m *Lock) Block(t time.Duration, callback ...func()) bool

Block provides a mock function with given fields: t, callback

func (*Lock) ForceRelease added in v1.10.2

func (_m *Lock) ForceRelease() bool

ForceRelease provides a mock function with given fields:

func (*Lock) Get added in v1.10.2

func (_m *Lock) Get(callback ...func()) bool

Get provides a mock function with given fields: callback

func (*Lock) Release added in v1.10.2

func (_m *Lock) Release() bool

Release provides a mock function with given fields:

Jump to

Keyboard shortcuts

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