mock_redis

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection

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

Mock of Connection interface

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

func (*MockConnection) EXPECT

func (_m *MockConnection) EXPECT() *_MockConnectionRecorder

func (*MockConnection) PipeAppend

func (_m *MockConnection) PipeAppend(_param0 string, _param1 ...interface{})

func (*MockConnection) PipeResponse

func (_m *MockConnection) PipeResponse() redis.Response

type MockJitterRandSource

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

Mock of JitterRandSource interface

func NewMockJitterRandSource

func NewMockJitterRandSource(ctrl *gomock.Controller) *MockJitterRandSource

func (*MockJitterRandSource) EXPECT

func (_m *MockJitterRandSource) EXPECT() *_MockJitterRandSourceRecorder

func (*MockJitterRandSource) Int63

func (_m *MockJitterRandSource) Int63() int64

func (*MockJitterRandSource) Seed

func (_m *MockJitterRandSource) Seed(_param0 int64)

type MockPool

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

Mock of Pool interface

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

func (*MockPool) EXPECT

func (_m *MockPool) EXPECT() *_MockPoolRecorder

func (*MockPool) Get

func (_m *MockPool) Get() redis.Connection

func (*MockPool) Put

func (_m *MockPool) Put(_param0 redis.Connection)

type MockRateLimitCache

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

Mock of RateLimitCache interface

func NewMockRateLimitCache

func NewMockRateLimitCache(ctrl *gomock.Controller) *MockRateLimitCache

func (*MockRateLimitCache) DoLimit

func (*MockRateLimitCache) EXPECT

func (_m *MockRateLimitCache) EXPECT() *_MockRateLimitCacheRecorder

type MockResponse

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

Mock of Response interface

func NewMockResponse

func NewMockResponse(ctrl *gomock.Controller) *MockResponse

func (*MockResponse) EXPECT

func (_m *MockResponse) EXPECT() *_MockResponseRecorder

func (*MockResponse) Int

func (_m *MockResponse) Int() int64

type MockTimeSource

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

Mock of TimeSource interface

func NewMockTimeSource

func NewMockTimeSource(ctrl *gomock.Controller) *MockTimeSource

func (*MockTimeSource) EXPECT

func (_m *MockTimeSource) EXPECT() *_MockTimeSourceRecorder

func (*MockTimeSource) UnixNow

func (_m *MockTimeSource) UnixNow() int64

Jump to

Keyboard shortcuts

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