mocks

package
v0.0.0-...-a448e87 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockIMessageCacheRepo

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

MockIMessageCacheRepo is a mock of IMessageCacheRepo interface

func NewMockIMessageCacheRepo

func NewMockIMessageCacheRepo(ctrl *gomock.Controller) *MockIMessageCacheRepo

NewMockIMessageCacheRepo creates a new mock instance

func (*MockIMessageCacheRepo) EXPECT

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

func (*MockIMessageCacheRepo) Publish

func (m *MockIMessageCacheRepo) Publish(arg0 *models.Message) error

Publish mocks base method

func (*MockIMessageCacheRepo) Subscribe

func (m *MockIMessageCacheRepo) Subscribe(arg0 *models.Conversation) (*redis.PubSub, error)

Subscribe mocks base method

type MockIMessageCacheRepoMockRecorder

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

MockIMessageCacheRepoMockRecorder is the mock recorder for MockIMessageCacheRepo

func (*MockIMessageCacheRepoMockRecorder) Publish

func (mr *MockIMessageCacheRepoMockRecorder) Publish(arg0 interface{}) *gomock.Call

Publish indicates an expected call of Publish

func (*MockIMessageCacheRepoMockRecorder) Subscribe

func (mr *MockIMessageCacheRepoMockRecorder) Subscribe(arg0 interface{}) *gomock.Call

Subscribe indicates an expected call of Subscribe

type MockIUserCacheRepo

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

MockIUserCacheRepo is a mock of IUserCacheRepo interface

func NewMockIUserCacheRepo

func NewMockIUserCacheRepo(ctrl *gomock.Controller) *MockIUserCacheRepo

NewMockIUserCacheRepo creates a new mock instance

func (*MockIUserCacheRepo) DelAll

func (m *MockIUserCacheRepo) DelAll()

DelAll mocks base method

func (*MockIUserCacheRepo) EXPECT

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

func (*MockIUserCacheRepo) FindRelevant

func (m *MockIUserCacheRepo) FindRelevant(arg0 *models.User, arg1 []models.Hobby, arg2 []cachemodels.CachedUser, arg3 int) ([]cachemodels.CachedUser, error)

FindRelevant mocks base method

func (*MockIUserCacheRepo) GenerateKey

func (m *MockIUserCacheRepo) GenerateKey(arg0 bool, arg1 int, arg2 string, arg3 []models.Hobby) string

GenerateKey mocks base method

func (*MockIUserCacheRepo) GetAllUserByKey

func (m *MockIUserCacheRepo) GetAllUserByKey(arg0 string) ([]cachemodels.CachedUser, error)

GetAllUserByKey mocks base method

func (*MockIUserCacheRepo) Set

Set mocks base method

func (*MockIUserCacheRepo) Sets

func (m *MockIUserCacheRepo) Sets(arg0 []cachemodels.CachedUser, arg1 time.Duration)

Sets mocks base method

func (*MockIUserCacheRepo) UpdateExpiration

func (m *MockIUserCacheRepo) UpdateExpiration(arg0 *cachemodels.CachedUser, arg1 time.Duration)

UpdateExpiration mocks base method

func (*MockIUserCacheRepo) UpdateExpirationKey

func (m *MockIUserCacheRepo) UpdateExpirationKey(arg0 string, arg1 time.Duration)

UpdateExpirationKey mocks base method

func (*MockIUserCacheRepo) UpdateExpirations

func (m *MockIUserCacheRepo) UpdateExpirations(arg0 []cachemodels.CachedUser, arg1 time.Duration)

UpdateExpirations mocks base method

type MockIUserCacheRepoMockRecorder

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

MockIUserCacheRepoMockRecorder is the mock recorder for MockIUserCacheRepo

func (*MockIUserCacheRepoMockRecorder) DelAll

DelAll indicates an expected call of DelAll

func (*MockIUserCacheRepoMockRecorder) FindRelevant

func (mr *MockIUserCacheRepoMockRecorder) FindRelevant(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

FindRelevant indicates an expected call of FindRelevant

func (*MockIUserCacheRepoMockRecorder) GenerateKey

func (mr *MockIUserCacheRepoMockRecorder) GenerateKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GenerateKey indicates an expected call of GenerateKey

func (*MockIUserCacheRepoMockRecorder) GetAllUserByKey

func (mr *MockIUserCacheRepoMockRecorder) GetAllUserByKey(arg0 interface{}) *gomock.Call

GetAllUserByKey indicates an expected call of GetAllUserByKey

func (*MockIUserCacheRepoMockRecorder) Set

func (mr *MockIUserCacheRepoMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call

Set indicates an expected call of Set

func (*MockIUserCacheRepoMockRecorder) Sets

func (mr *MockIUserCacheRepoMockRecorder) Sets(arg0, arg1 interface{}) *gomock.Call

Sets indicates an expected call of Sets

func (*MockIUserCacheRepoMockRecorder) UpdateExpiration

func (mr *MockIUserCacheRepoMockRecorder) UpdateExpiration(arg0, arg1 interface{}) *gomock.Call

UpdateExpiration indicates an expected call of UpdateExpiration

func (*MockIUserCacheRepoMockRecorder) UpdateExpirationKey

func (mr *MockIUserCacheRepoMockRecorder) UpdateExpirationKey(arg0, arg1 interface{}) *gomock.Call

UpdateExpirationKey indicates an expected call of UpdateExpirationKey

func (*MockIUserCacheRepoMockRecorder) UpdateExpirations

func (mr *MockIUserCacheRepoMockRecorder) UpdateExpirations(arg0, arg1 interface{}) *gomock.Call

UpdateExpirations indicates an expected call of UpdateExpirations

Jump to

Keyboard shortcuts

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