mocks

package
v0.0.0-...-4bf943b Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 Cacher

type Cacher struct {
	mock.Mock
}

Cacher is an autogenerated mock type for the Cacher type

func NewCacher

func NewCacher(t mockConstructorTestingTNewCacher) *Cacher

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

func (*Cacher) Get

func (_m *Cacher) Get(ctx context.Context, key string) (*cache.Item, bool, error)

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

func (*Cacher) Set

func (_m *Cacher) Set(ctx context.Context, key string, item *cache.Item, ttl time.Duration) error

Set provides a mock function with given fields: ctx, key, item, ttl

Jump to

Keyboard shortcuts

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