mocks

package
v0.0.0-...-9ae6259 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT 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 MockRedis

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

MockRedis is a mock of Redis interface

func NewMockRedis

func NewMockRedis(ctrl *gomock.Controller) *MockRedis

NewMockRedis creates a new mock instance

func (*MockRedis) Close

func (m *MockRedis) Close() error

Close mocks base method

func (*MockRedis) Del

func (m *MockRedis) Del(key string) error

Del mocks base method

func (*MockRedis) EXPECT

func (m *MockRedis) EXPECT() *MockRedisMockRecorder

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

func (*MockRedis) Get

func (m *MockRedis) Get(key string) (string, error)

Get mocks base method

func (*MockRedis) Set

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

Set mocks base method

type MockRedisMockRecorder

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

MockRedisMockRecorder is the mock recorder for MockRedis

func (*MockRedisMockRecorder) Close

func (mr *MockRedisMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockRedisMockRecorder) Del

func (mr *MockRedisMockRecorder) Del(key interface{}) *gomock.Call

Del indicates an expected call of Del

func (*MockRedisMockRecorder) Get

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

Get indicates an expected call of Get

func (*MockRedisMockRecorder) Set

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

Set indicates an expected call of Set

Jump to

Keyboard shortcuts

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