mockservice

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mockservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRedis

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

MockRedis is a mock of Redis interface.

func NewMockRedis

func NewMockRedis(ctrl *gomock.Controller) *MockRedis

NewMockRedis creates a new mock instance.

func (*MockRedis) Close

func (m *MockRedis) Close() error

Close mocks base method.

func (*MockRedis) Del

func (m *MockRedis) Del(arg0 string) error

Del mocks base method.

func (*MockRedis) EXPECT

func (m *MockRedis) EXPECT() *MockRedisMockRecorder

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

func (*MockRedis) Exists

func (m *MockRedis) Exists(arg0 string) bool

Exists mocks base method.

func (*MockRedis) Get

func (m *MockRedis) Get(arg0 string) (string, error)

Get mocks base method.

func (*MockRedis) Ping

func (m *MockRedis) Ping(arg0 context.Context) error

Ping mocks base method.

func (*MockRedis) Set

func (m *MockRedis) Set(arg0, arg1 string, arg2 time.Duration) error

Set mocks base method.

func (*MockRedis) SetNX

func (m *MockRedis) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)

SetNX mocks base method.

type MockRedisMockRecorder

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

MockRedisMockRecorder is the mock recorder for MockRedis.

func (*MockRedisMockRecorder) Close

func (mr *MockRedisMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRedisMockRecorder) Del

func (mr *MockRedisMockRecorder) Del(arg0 interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockRedisMockRecorder) Exists

func (mr *MockRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockRedisMockRecorder) Get

func (mr *MockRedisMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRedisMockRecorder) Ping

func (mr *MockRedisMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockRedisMockRecorder) Set

func (mr *MockRedisMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockRedisMockRecorder) SetNX

func (mr *MockRedisMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetNX indicates an expected call of SetNX.

Jump to

Keyboard shortcuts

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