mock_redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_redis is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

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

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Del

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

Del mocks base method.

func (*MockInterface) EXPECT

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

func (*MockInterface) FlushAll

func (m *MockInterface) FlushAll(ctx context.Context) error

FlushAll mocks base method.

func (*MockInterface) FlushAllAsync

func (m *MockInterface) FlushAllAsync(ctx context.Context) error

FlushAllAsync mocks base method.

func (*MockInterface) FlushDB

func (m *MockInterface) FlushDB(ctx context.Context) error

FlushDB mocks base method.

func (*MockInterface) FlushDBAsync

func (m *MockInterface) FlushDBAsync(ctx context.Context) error

FlushDBAsync mocks base method.

func (*MockInterface) Get

func (m *MockInterface) Get(ctx context.Context, key string) (string, error)

Get mocks base method.

func (*MockInterface) GetDefaultTTL

func (m *MockInterface) GetDefaultTTL(ctx context.Context) time.Duration

GetDefaultTTL mocks base method.

func (*MockInterface) Lock

func (m *MockInterface) Lock(ctx context.Context, key string, expTime time.Duration) (*redislock.Lock, error)

Lock mocks base method.

func (*MockInterface) LockRelease

func (m *MockInterface) LockRelease(ctx context.Context, lock *redislock.Lock) error

LockRelease mocks base method.

func (*MockInterface) Ping

func (m *MockInterface) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockInterface) SetEX

func (m *MockInterface) SetEX(ctx context.Context, key, val string, expTime time.Duration) error

SetEX mocks base method.

type MockInterfaceMockRecorder

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Del

func (mr *MockInterfaceMockRecorder) Del(ctx, key any) *gomock.Call

Del indicates an expected call of Del.

func (*MockInterfaceMockRecorder) FlushAll

func (mr *MockInterfaceMockRecorder) FlushAll(ctx any) *gomock.Call

FlushAll indicates an expected call of FlushAll.

func (*MockInterfaceMockRecorder) FlushAllAsync

func (mr *MockInterfaceMockRecorder) FlushAllAsync(ctx any) *gomock.Call

FlushAllAsync indicates an expected call of FlushAllAsync.

func (*MockInterfaceMockRecorder) FlushDB

func (mr *MockInterfaceMockRecorder) FlushDB(ctx any) *gomock.Call

FlushDB indicates an expected call of FlushDB.

func (*MockInterfaceMockRecorder) FlushDBAsync

func (mr *MockInterfaceMockRecorder) FlushDBAsync(ctx any) *gomock.Call

FlushDBAsync indicates an expected call of FlushDBAsync.

func (*MockInterfaceMockRecorder) Get

func (mr *MockInterfaceMockRecorder) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) GetDefaultTTL

func (mr *MockInterfaceMockRecorder) GetDefaultTTL(ctx any) *gomock.Call

GetDefaultTTL indicates an expected call of GetDefaultTTL.

func (*MockInterfaceMockRecorder) Lock

func (mr *MockInterfaceMockRecorder) Lock(ctx, key, expTime any) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockInterfaceMockRecorder) LockRelease

func (mr *MockInterfaceMockRecorder) LockRelease(ctx, lock any) *gomock.Call

LockRelease indicates an expected call of LockRelease.

func (*MockInterfaceMockRecorder) Ping

func (mr *MockInterfaceMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockInterfaceMockRecorder) SetEX

func (mr *MockInterfaceMockRecorder) SetEX(ctx, key, val, expTime any) *gomock.Call

SetEX indicates an expected call of SetEX.

Jump to

Keyboard shortcuts

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