mocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package redisstore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRedisClient

type MockRedisClient struct {
	// contains filtered or unexported fields
}

MockRedisClient is a mock of RedisClient interface.

func NewMockRedisClient

func NewMockRedisClient(ctrl *gomock.Controller) *MockRedisClient

NewMockRedisClient creates a new mock instance.

func (*MockRedisClient) Del

func (m *MockRedisClient) Del(ctx context.Context, key string) error

Del mocks base method.

func (*MockRedisClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRedisClient) Get

func (m *MockRedisClient) Get(ctx context.Context, key string) ([]byte, error)

Get mocks base method.

func (*MockRedisClient) Set

func (m *MockRedisClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Set mocks base method.

type MockRedisClientMockRecorder

type MockRedisClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRedisClientMockRecorder is the mock recorder for MockRedisClient.

func (*MockRedisClientMockRecorder) Del

func (mr *MockRedisClientMockRecorder) Del(ctx, key interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisClientMockRecorder) Get

func (mr *MockRedisClientMockRecorder) Get(ctx, key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRedisClientMockRecorder) Set

func (mr *MockRedisClientMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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