mock_cache

package
v0.0.0-...-beb8713 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_cache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

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

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) Delete

func (m *MockCache) Delete(key string) error

Delete mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Get

func (m *MockCache) Get(key string, value interface{}) error

Get mocks base method.

func (*MockCache) GetAndLoad

func (m *MockCache) GetAndLoad(key string, value interface{}, loader func() (interface{}, error)) error

GetAndLoad mocks base method.

func (*MockCache) Set

func (m *MockCache) Set(key string, value interface{}, expiration *time.Duration) error

Set mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Delete

func (mr *MockCacheMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(key, value interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) GetAndLoad

func (mr *MockCacheMockRecorder) GetAndLoad(key, value, loader interface{}) *gomock.Call

GetAndLoad indicates an expected call of GetAndLoad.

func (*MockCacheMockRecorder) Set

func (mr *MockCacheMockRecorder) Set(key, value, expiration interface{}) *gomock.Call

Set indicates an expected call of Set.

type MockLogger

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

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Printf

func (m *MockLogger) Printf(format string, v ...interface{})

Printf mocks base method.

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Printf

func (mr *MockLoggerMockRecorder) Printf(format interface{}, v ...interface{}) *gomock.Call

Printf indicates an expected call of Printf.

Jump to

Keyboard shortcuts

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