mocks

package
v1.9.1 Latest Latest
Warning

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

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

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStoreInterface

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

MockStoreInterface is a mock of StoreInterface interface.

func NewMockStoreInterface

func NewMockStoreInterface(ctrl *gomock.Controller) *MockStoreInterface

NewMockStoreInterface creates a new mock instance.

func (*MockStoreInterface) Clear

func (m *MockStoreInterface) Clear() error

Clear mocks base method.

func (*MockStoreInterface) Delete

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

Delete mocks base method.

func (*MockStoreInterface) EXPECT

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

func (*MockStoreInterface) Get

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

Get mocks base method.

func (*MockStoreInterface) GetType

func (m *MockStoreInterface) GetType() string

GetType mocks base method.

func (*MockStoreInterface) GetWithTTL

func (m *MockStoreInterface) GetWithTTL(key string) (interface{}, time.Duration, error)

GetWithTTL mocks base method.

func (*MockStoreInterface) Set

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

Set mocks base method.

func (*MockStoreInterface) SetNX added in v1.9.1

func (m *MockStoreInterface) SetNX(key string, value interface{}, expiration time.Duration) bool

SetNX mocks base method.

type MockStoreInterfaceMockRecorder

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

MockStoreInterfaceMockRecorder is the mock recorder for MockStoreInterface.

func (*MockStoreInterfaceMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockStoreInterfaceMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockStoreInterfaceMockRecorder) Get

func (mr *MockStoreInterfaceMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreInterfaceMockRecorder) GetType

GetType indicates an expected call of GetType.

func (*MockStoreInterfaceMockRecorder) GetWithTTL

func (mr *MockStoreInterfaceMockRecorder) GetWithTTL(key interface{}) *gomock.Call

GetWithTTL indicates an expected call of GetWithTTL.

func (*MockStoreInterfaceMockRecorder) Set

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

Set indicates an expected call of Set.

func (*MockStoreInterfaceMockRecorder) SetNX added in v1.9.1

func (mr *MockStoreInterfaceMockRecorder) SetNX(key, value, expiration interface{}) *gomock.Call

SetNX indicates an expected call of SetNX.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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