mock_redis

package
v17.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_redis is a generated GoMock package.

Package mock_redis is a generated GoMock package.

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 MockExpiringHash

type MockExpiringHash[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockExpiringHash is a mock of ExpiringHash interface.

func NewMockExpiringHash

func NewMockExpiringHash[K1 any, K2 any](ctrl *gomock.Controller) *MockExpiringHash[K1, K2]

NewMockExpiringHash creates a new mock instance.

func (*MockExpiringHash[K1, K2]) DelEX added in v17.1.0

func (m *MockExpiringHash[K1, K2]) DelEX(ctx context.Context, key K1, hashkKey K2) error

DelEX mocks base method.

func (*MockExpiringHash[K1, K2]) EXPECT

func (m *MockExpiringHash[K1, K2]) EXPECT() *MockExpiringHashMockRecorder[K1, K2]

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

func (*MockExpiringHash[K1, K2]) GC

func (m *MockExpiringHash[K1, K2]) GC() func(context.Context) (int, error)

GC mocks base method.

func (*MockExpiringHash[K1, K2]) GCFor

func (m *MockExpiringHash[K1, K2]) GCFor(keys []K1) func(context.Context) (int, error)

GCFor mocks base method.

func (*MockExpiringHash[K1, K2]) GetName

func (m *MockExpiringHash[K1, K2]) GetName() string

GetName mocks base method.

func (*MockExpiringHash[K1, K2]) Len

func (m *MockExpiringHash[K1, K2]) Len(ctx context.Context, key K1) (int64, error)

Len mocks base method.

func (*MockExpiringHash[K1, K2]) Scan

func (m *MockExpiringHash[K1, K2]) Scan(ctx context.Context, key K1, cb redistool.ScanCallback) error

Scan mocks base method.

func (*MockExpiringHash[K1, K2]) SetEX

func (m *MockExpiringHash[K1, K2]) SetEX(ctx context.Context, key K1, hashKey K2, value []byte, expiresAt time.Time) error

SetEX mocks base method.

type MockExpiringHashAPI

type MockExpiringHashAPI[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockExpiringHashAPI is a mock of ExpiringHashAPI interface.

func NewMockExpiringHashAPI

func NewMockExpiringHashAPI[K1 any, K2 any](ctrl *gomock.Controller) *MockExpiringHashAPI[K1, K2]

NewMockExpiringHashAPI creates a new mock instance.

func (*MockExpiringHashAPI[K1, K2]) EXPECT

func (m *MockExpiringHashAPI[K1, K2]) EXPECT() *MockExpiringHashAPIMockRecorder[K1, K2]

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

func (*MockExpiringHashAPI[K1, K2]) GCFor

func (m *MockExpiringHashAPI[K1, K2]) GCFor(keys []K1, transactional bool) func(context.Context) (int, error)

GCFor mocks base method.

func (*MockExpiringHashAPI[K1, K2]) Scan

func (m *MockExpiringHashAPI[K1, K2]) Scan(ctx context.Context, key K1, cb redistool.ScanCallback) error

Scan mocks base method.

func (*MockExpiringHashAPI[K1, K2]) SetBuilder

func (m *MockExpiringHashAPI[K1, K2]) SetBuilder() redistool.SetBuilder[K1, K2]

SetBuilder mocks base method.

func (*MockExpiringHashAPI[K1, K2]) Unset

func (m *MockExpiringHashAPI[K1, K2]) Unset(ctx context.Context, key K1, hashKey K2) error

Unset mocks base method.

type MockExpiringHashAPIGCForCall

type MockExpiringHashAPIGCForCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashAPIGCForCall wrap *gomock.Call

func (*MockExpiringHashAPIGCForCall[K1, K2]) Do

func (c *MockExpiringHashAPIGCForCall[K1, K2]) Do(f func([]K1, bool) func(context.Context) (int, error)) *MockExpiringHashAPIGCForCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashAPIGCForCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashAPIGCForCall[K1, K2]) DoAndReturn(f func([]K1, bool) func(context.Context) (int, error)) *MockExpiringHashAPIGCForCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashAPIGCForCall[K1, K2]) Return

func (c *MockExpiringHashAPIGCForCall[K1, K2]) Return(arg0 func(context.Context) (int, error)) *MockExpiringHashAPIGCForCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashAPIMockRecorder

type MockExpiringHashAPIMockRecorder[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockExpiringHashAPIMockRecorder is the mock recorder for MockExpiringHashAPI.

func (*MockExpiringHashAPIMockRecorder[K1, K2]) GCFor

func (mr *MockExpiringHashAPIMockRecorder[K1, K2]) GCFor(keys, transactional any) *MockExpiringHashAPIGCForCall[K1, K2]

GCFor indicates an expected call of GCFor.

func (*MockExpiringHashAPIMockRecorder[K1, K2]) Scan

func (mr *MockExpiringHashAPIMockRecorder[K1, K2]) Scan(ctx, key, cb any) *MockExpiringHashAPIScanCall[K1, K2]

Scan indicates an expected call of Scan.

func (*MockExpiringHashAPIMockRecorder[K1, K2]) SetBuilder

func (mr *MockExpiringHashAPIMockRecorder[K1, K2]) SetBuilder() *MockExpiringHashAPISetBuilderCall[K1, K2]

SetBuilder indicates an expected call of SetBuilder.

func (*MockExpiringHashAPIMockRecorder[K1, K2]) Unset

func (mr *MockExpiringHashAPIMockRecorder[K1, K2]) Unset(ctx, key, hashKey any) *MockExpiringHashAPIUnsetCall[K1, K2]

Unset indicates an expected call of Unset.

type MockExpiringHashAPIScanCall

type MockExpiringHashAPIScanCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashAPIScanCall wrap *gomock.Call

func (*MockExpiringHashAPIScanCall[K1, K2]) Do

Do rewrite *gomock.Call.Do

func (*MockExpiringHashAPIScanCall[K1, K2]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashAPIScanCall[K1, K2]) Return

func (c *MockExpiringHashAPIScanCall[K1, K2]) Return(arg0 error) *MockExpiringHashAPIScanCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashAPISetBuilderCall

type MockExpiringHashAPISetBuilderCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashAPISetBuilderCall wrap *gomock.Call

func (*MockExpiringHashAPISetBuilderCall[K1, K2]) Do

Do rewrite *gomock.Call.Do

func (*MockExpiringHashAPISetBuilderCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashAPISetBuilderCall[K1, K2]) DoAndReturn(f func() redistool.SetBuilder[K1, K2]) *MockExpiringHashAPISetBuilderCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashAPISetBuilderCall[K1, K2]) Return

Return rewrite *gomock.Call.Return

type MockExpiringHashAPIUnsetCall

type MockExpiringHashAPIUnsetCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashAPIUnsetCall wrap *gomock.Call

func (*MockExpiringHashAPIUnsetCall[K1, K2]) Do

func (c *MockExpiringHashAPIUnsetCall[K1, K2]) Do(f func(context.Context, K1, K2) error) *MockExpiringHashAPIUnsetCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashAPIUnsetCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashAPIUnsetCall[K1, K2]) DoAndReturn(f func(context.Context, K1, K2) error) *MockExpiringHashAPIUnsetCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashAPIUnsetCall[K1, K2]) Return

func (c *MockExpiringHashAPIUnsetCall[K1, K2]) Return(arg0 error) *MockExpiringHashAPIUnsetCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashDelEXCall added in v17.1.0

type MockExpiringHashDelEXCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashDelEXCall wrap *gomock.Call

func (*MockExpiringHashDelEXCall[K1, K2]) Do added in v17.1.0

func (c *MockExpiringHashDelEXCall[K1, K2]) Do(f func(context.Context, K1, K2) error) *MockExpiringHashDelEXCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashDelEXCall[K1, K2]) DoAndReturn added in v17.1.0

func (c *MockExpiringHashDelEXCall[K1, K2]) DoAndReturn(f func(context.Context, K1, K2) error) *MockExpiringHashDelEXCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashDelEXCall[K1, K2]) Return added in v17.1.0

func (c *MockExpiringHashDelEXCall[K1, K2]) Return(arg0 error) *MockExpiringHashDelEXCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashGCCall

type MockExpiringHashGCCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashGCCall wrap *gomock.Call

func (*MockExpiringHashGCCall[K1, K2]) Do

func (c *MockExpiringHashGCCall[K1, K2]) Do(f func() func(context.Context) (int, error)) *MockExpiringHashGCCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashGCCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashGCCall[K1, K2]) DoAndReturn(f func() func(context.Context) (int, error)) *MockExpiringHashGCCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashGCCall[K1, K2]) Return

func (c *MockExpiringHashGCCall[K1, K2]) Return(arg0 func(context.Context) (int, error)) *MockExpiringHashGCCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashGCForCall

type MockExpiringHashGCForCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashGCForCall wrap *gomock.Call

func (*MockExpiringHashGCForCall[K1, K2]) Do

func (c *MockExpiringHashGCForCall[K1, K2]) Do(f func([]K1) func(context.Context) (int, error)) *MockExpiringHashGCForCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashGCForCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashGCForCall[K1, K2]) DoAndReturn(f func([]K1) func(context.Context) (int, error)) *MockExpiringHashGCForCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashGCForCall[K1, K2]) Return

func (c *MockExpiringHashGCForCall[K1, K2]) Return(arg0 func(context.Context) (int, error)) *MockExpiringHashGCForCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashGetNameCall

type MockExpiringHashGetNameCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashGetNameCall wrap *gomock.Call

func (*MockExpiringHashGetNameCall[K1, K2]) Do

func (c *MockExpiringHashGetNameCall[K1, K2]) Do(f func() string) *MockExpiringHashGetNameCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashGetNameCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashGetNameCall[K1, K2]) DoAndReturn(f func() string) *MockExpiringHashGetNameCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashGetNameCall[K1, K2]) Return

func (c *MockExpiringHashGetNameCall[K1, K2]) Return(arg0 string) *MockExpiringHashGetNameCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashLenCall

type MockExpiringHashLenCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashLenCall wrap *gomock.Call

func (*MockExpiringHashLenCall[K1, K2]) Do

func (c *MockExpiringHashLenCall[K1, K2]) Do(f func(context.Context, K1) (int64, error)) *MockExpiringHashLenCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashLenCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashLenCall[K1, K2]) DoAndReturn(f func(context.Context, K1) (int64, error)) *MockExpiringHashLenCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashLenCall[K1, K2]) Return

func (c *MockExpiringHashLenCall[K1, K2]) Return(arg0 int64, arg1 error) *MockExpiringHashLenCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashMockRecorder

type MockExpiringHashMockRecorder[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockExpiringHashMockRecorder is the mock recorder for MockExpiringHash.

func (*MockExpiringHashMockRecorder[K1, K2]) DelEX added in v17.1.0

func (mr *MockExpiringHashMockRecorder[K1, K2]) DelEX(ctx, key, hashkKey any) *MockExpiringHashDelEXCall[K1, K2]

DelEX indicates an expected call of DelEX.

func (*MockExpiringHashMockRecorder[K1, K2]) GC

func (mr *MockExpiringHashMockRecorder[K1, K2]) GC() *MockExpiringHashGCCall[K1, K2]

GC indicates an expected call of GC.

func (*MockExpiringHashMockRecorder[K1, K2]) GCFor

func (mr *MockExpiringHashMockRecorder[K1, K2]) GCFor(keys any) *MockExpiringHashGCForCall[K1, K2]

GCFor indicates an expected call of GCFor.

func (*MockExpiringHashMockRecorder[K1, K2]) GetName

func (mr *MockExpiringHashMockRecorder[K1, K2]) GetName() *MockExpiringHashGetNameCall[K1, K2]

GetName indicates an expected call of GetName.

func (*MockExpiringHashMockRecorder[K1, K2]) Len

func (mr *MockExpiringHashMockRecorder[K1, K2]) Len(ctx, key any) *MockExpiringHashLenCall[K1, K2]

Len indicates an expected call of Len.

func (*MockExpiringHashMockRecorder[K1, K2]) Scan

func (mr *MockExpiringHashMockRecorder[K1, K2]) Scan(ctx, key, cb any) *MockExpiringHashScanCall[K1, K2]

Scan indicates an expected call of Scan.

func (*MockExpiringHashMockRecorder[K1, K2]) SetEX

func (mr *MockExpiringHashMockRecorder[K1, K2]) SetEX(ctx, key, hashKey, value, expiresAt any) *MockExpiringHashSetEXCall[K1, K2]

SetEX indicates an expected call of SetEX.

type MockExpiringHashScanCall

type MockExpiringHashScanCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashScanCall wrap *gomock.Call

func (*MockExpiringHashScanCall[K1, K2]) Do

Do rewrite *gomock.Call.Do

func (*MockExpiringHashScanCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashScanCall[K1, K2]) DoAndReturn(f func(context.Context, K1, redistool.ScanCallback) error) *MockExpiringHashScanCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashScanCall[K1, K2]) Return

func (c *MockExpiringHashScanCall[K1, K2]) Return(arg0 error) *MockExpiringHashScanCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockExpiringHashSetEXCall

type MockExpiringHashSetEXCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockExpiringHashSetEXCall wrap *gomock.Call

func (*MockExpiringHashSetEXCall[K1, K2]) Do

func (c *MockExpiringHashSetEXCall[K1, K2]) Do(f func(context.Context, K1, K2, []byte, time.Time) error) *MockExpiringHashSetEXCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockExpiringHashSetEXCall[K1, K2]) DoAndReturn

func (c *MockExpiringHashSetEXCall[K1, K2]) DoAndReturn(f func(context.Context, K1, K2, []byte, time.Time) error) *MockExpiringHashSetEXCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashSetEXCall[K1, K2]) Return

func (c *MockExpiringHashSetEXCall[K1, K2]) Return(arg0 error) *MockExpiringHashSetEXCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockSetBuilder

type MockSetBuilder[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockSetBuilder is a mock of SetBuilder interface.

func NewMockSetBuilder

func NewMockSetBuilder[K1 any, K2 any](ctrl *gomock.Controller) *MockSetBuilder[K1, K2]

NewMockSetBuilder creates a new mock instance.

func (*MockSetBuilder[K1, K2]) Do

func (m *MockSetBuilder[K1, K2]) Do(arg0 context.Context) error

Do mocks base method.

func (*MockSetBuilder[K1, K2]) EXPECT

func (m *MockSetBuilder[K1, K2]) EXPECT() *MockSetBuilderMockRecorder[K1, K2]

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

func (*MockSetBuilder[K1, K2]) Set

func (m *MockSetBuilder[K1, K2]) Set(key K1, ttl time.Duration, kvs ...redistool.BuilderKV[K2])

Set mocks base method.

type MockSetBuilderDoCall

type MockSetBuilderDoCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockSetBuilderDoCall wrap *gomock.Call

func (*MockSetBuilderDoCall[K1, K2]) Do

func (c *MockSetBuilderDoCall[K1, K2]) Do(f func(context.Context) error) *MockSetBuilderDoCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockSetBuilderDoCall[K1, K2]) DoAndReturn

func (c *MockSetBuilderDoCall[K1, K2]) DoAndReturn(f func(context.Context) error) *MockSetBuilderDoCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSetBuilderDoCall[K1, K2]) Return

func (c *MockSetBuilderDoCall[K1, K2]) Return(arg0 error) *MockSetBuilderDoCall[K1, K2]

Return rewrite *gomock.Call.Return

type MockSetBuilderMockRecorder

type MockSetBuilderMockRecorder[K1 any, K2 any] struct {
	// contains filtered or unexported fields
}

MockSetBuilderMockRecorder is the mock recorder for MockSetBuilder.

func (*MockSetBuilderMockRecorder[K1, K2]) Do

func (mr *MockSetBuilderMockRecorder[K1, K2]) Do(arg0 any) *MockSetBuilderDoCall[K1, K2]

Do indicates an expected call of Do.

func (*MockSetBuilderMockRecorder[K1, K2]) Set

func (mr *MockSetBuilderMockRecorder[K1, K2]) Set(key, ttl any, kvs ...any) *MockSetBuilderSetCall[K1, K2]

Set indicates an expected call of Set.

type MockSetBuilderSetCall

type MockSetBuilderSetCall[K1 any, K2 any] struct {
	*gomock.Call
}

MockSetBuilderSetCall wrap *gomock.Call

func (*MockSetBuilderSetCall[K1, K2]) Do

func (c *MockSetBuilderSetCall[K1, K2]) Do(f func(K1, time.Duration, ...redistool.BuilderKV[K2])) *MockSetBuilderSetCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockSetBuilderSetCall[K1, K2]) DoAndReturn

func (c *MockSetBuilderSetCall[K1, K2]) DoAndReturn(f func(K1, time.Duration, ...redistool.BuilderKV[K2])) *MockSetBuilderSetCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSetBuilderSetCall[K1, K2]) Return

func (c *MockSetBuilderSetCall[K1, K2]) Return() *MockSetBuilderSetCall[K1, K2]

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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