mock

package
v0.0.0-...-19b0ade Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheMock

type CacheMock struct {
	mock.Mock
}

CacheMock exported type to provide mock for cache.Cache interface

func (*CacheMock) Close

func (c *CacheMock) Close() error

func (*CacheMock) Get

func (c *CacheMock) Get(ctx context.Context, key string) (string, error)

func (*CacheMock) Set

func (c *CacheMock) Set(ctx context.Context, key string, value interface{}, expirations time.Duration) error

Jump to

Keyboard shortcuts

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