mock_redis

package
v17.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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]) IOBuilder added in v17.4.0

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

IOBuilder 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.

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 MockExpiringHashAPIIOBuilderCall added in v17.4.0

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

MockExpiringHashAPIIOBuilderCall wrap *gomock.Call

func (*MockExpiringHashAPIIOBuilderCall[K1, K2]) Do added in v17.4.0

Do rewrite *gomock.Call.Do

func (*MockExpiringHashAPIIOBuilderCall[K1, K2]) DoAndReturn added in v17.4.0

func (c *MockExpiringHashAPIIOBuilderCall[K1, K2]) DoAndReturn(f func() redistool.IOBuilder[K1, K2]) *MockExpiringHashAPIIOBuilderCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExpiringHashAPIIOBuilderCall[K1, K2]) Return added in v17.4.0

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]) IOBuilder added in v17.4.0

func (mr *MockExpiringHashAPIMockRecorder[K1, K2]) IOBuilder() *MockExpiringHashAPIIOBuilderCall[K1, K2]

IOBuilder indicates an expected call of IOBuilder.

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.

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 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 MockIOBuilder added in v17.4.0

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

MockIOBuilder is a mock of IOBuilder interface.

func NewMockIOBuilder added in v17.4.0

func NewMockIOBuilder[K1 any, K2 any](ctrl *gomock.Controller) *MockIOBuilder[K1, K2]

NewMockIOBuilder creates a new mock instance.

func (*MockIOBuilder[K1, K2]) Do added in v17.4.0

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

Do mocks base method.

func (*MockIOBuilder[K1, K2]) EXPECT added in v17.4.0

func (m *MockIOBuilder[K1, K2]) EXPECT() *MockIOBuilderMockRecorder[K1, K2]

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

func (*MockIOBuilder[K1, K2]) Set added in v17.4.0

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

Set mocks base method.

func (*MockIOBuilder[K1, K2]) Unset added in v17.4.0

func (m *MockIOBuilder[K1, K2]) Unset(keys []K1, hashKeys ...K2)

Unset mocks base method.

type MockIOBuilderDoCall added in v17.4.0

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

MockIOBuilderDoCall wrap *gomock.Call

func (*MockIOBuilderDoCall[K1, K2]) Do added in v17.4.0

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

Do rewrite *gomock.Call.Do

func (*MockIOBuilderDoCall[K1, K2]) DoAndReturn added in v17.4.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockIOBuilderDoCall[K1, K2]) Return added in v17.4.0

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

Return rewrite *gomock.Call.Return

type MockIOBuilderMockRecorder added in v17.4.0

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

MockIOBuilderMockRecorder is the mock recorder for MockIOBuilder.

func (*MockIOBuilderMockRecorder[K1, K2]) Do added in v17.4.0

func (mr *MockIOBuilderMockRecorder[K1, K2]) Do(arg0 any) *MockIOBuilderDoCall[K1, K2]

Do indicates an expected call of Do.

func (*MockIOBuilderMockRecorder[K1, K2]) Set added in v17.4.0

func (mr *MockIOBuilderMockRecorder[K1, K2]) Set(keys, ttl any, kvs ...any) *MockIOBuilderSetCall[K1, K2]

Set indicates an expected call of Set.

func (*MockIOBuilderMockRecorder[K1, K2]) Unset added in v17.4.0

func (mr *MockIOBuilderMockRecorder[K1, K2]) Unset(keys any, hashKeys ...any) *MockIOBuilderUnsetCall[K1, K2]

Unset indicates an expected call of Unset.

type MockIOBuilderSetCall added in v17.4.0

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

MockIOBuilderSetCall wrap *gomock.Call

func (*MockIOBuilderSetCall[K1, K2]) Do added in v17.4.0

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

Do rewrite *gomock.Call.Do

func (*MockIOBuilderSetCall[K1, K2]) DoAndReturn added in v17.4.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockIOBuilderSetCall[K1, K2]) Return added in v17.4.0

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

Return rewrite *gomock.Call.Return

type MockIOBuilderUnsetCall added in v17.4.0

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

MockIOBuilderUnsetCall wrap *gomock.Call

func (*MockIOBuilderUnsetCall[K1, K2]) Do added in v17.4.0

func (c *MockIOBuilderUnsetCall[K1, K2]) Do(f func([]K1, ...K2)) *MockIOBuilderUnsetCall[K1, K2]

Do rewrite *gomock.Call.Do

func (*MockIOBuilderUnsetCall[K1, K2]) DoAndReturn added in v17.4.0

func (c *MockIOBuilderUnsetCall[K1, K2]) DoAndReturn(f func([]K1, ...K2)) *MockIOBuilderUnsetCall[K1, K2]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockIOBuilderUnsetCall[K1, K2]) Return added in v17.4.0

func (c *MockIOBuilderUnsetCall[K1, K2]) Return() *MockIOBuilderUnsetCall[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