mock

package
v0.0.0-...-90e0d95 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHandler

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

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) GetNotificationPublicKey

func (m *MockHandler) GetNotificationPublicKey(arg0 http.ResponseWriter, arg1 *http.Request)

GetNotificationPublicKey mocks base method.

func (*MockHandler) SubscribeUser

func (m *MockHandler) SubscribeUser(arg0 http.ResponseWriter, arg1 *http.Request)

SubscribeUser mocks base method.

func (*MockHandler) UnsubscribeUser

func (m *MockHandler) UnsubscribeUser(arg0 http.ResponseWriter, arg1 *http.Request)

UnsubscribeUser mocks base method.

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) GetNotificationPublicKey

func (mr *MockHandlerMockRecorder) GetNotificationPublicKey(arg0, arg1 interface{}) *gomock.Call

GetNotificationPublicKey indicates an expected call of GetNotificationPublicKey.

func (*MockHandlerMockRecorder) SubscribeUser

func (mr *MockHandlerMockRecorder) SubscribeUser(arg0, arg1 interface{}) *gomock.Call

SubscribeUser indicates an expected call of SubscribeUser.

func (*MockHandlerMockRecorder) UnsubscribeUser

func (mr *MockHandlerMockRecorder) UnsubscribeUser(arg0, arg1 interface{}) *gomock.Call

UnsubscribeUser indicates an expected call of UnsubscribeUser.

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) AddSubscribeUser

func (m *MockRepository) AddSubscribeUser(arg0 uint64, arg1 *models.Subscribes) error

AddSubscribeUser mocks base method.

func (*MockRepository) DeleteSubscribeUser

func (m *MockRepository) DeleteSubscribeUser(arg0 uint64) error

DeleteSubscribeUser mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) SelectCredentialsByUserId

func (m *MockRepository) SelectCredentialsByUserId(arg0 uint64) (*models.Subscribes, error)

SelectCredentialsByUserId mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) AddSubscribeUser

func (mr *MockRepositoryMockRecorder) AddSubscribeUser(arg0, arg1 interface{}) *gomock.Call

AddSubscribeUser indicates an expected call of AddSubscribeUser.

func (*MockRepositoryMockRecorder) DeleteSubscribeUser

func (mr *MockRepositoryMockRecorder) DeleteSubscribeUser(arg0 interface{}) *gomock.Call

DeleteSubscribeUser indicates an expected call of DeleteSubscribeUser.

func (*MockRepositoryMockRecorder) SelectCredentialsByUserId

func (mr *MockRepositoryMockRecorder) SelectCredentialsByUserId(arg0 interface{}) *gomock.Call

SelectCredentialsByUserId indicates an expected call of SelectCredentialsByUserId.

type MockUseCase

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

MockUseCase is a mock of UseCase interface.

func NewMockUseCase

func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase

NewMockUseCase creates a new mock instance.

func (*MockUseCase) EXPECT

func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder

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

func (*MockUseCase) SubscribeUser

func (m *MockUseCase) SubscribeUser(arg0 uint64, arg1 *models.NotificationCredentials) error

SubscribeUser mocks base method.

func (*MockUseCase) UnsubscribeUser

func (m *MockUseCase) UnsubscribeUser(arg0 uint64, arg1 string) error

UnsubscribeUser mocks base method.

type MockUseCaseMockRecorder

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

MockUseCaseMockRecorder is the mock recorder for MockUseCase.

func (*MockUseCaseMockRecorder) SubscribeUser

func (mr *MockUseCaseMockRecorder) SubscribeUser(arg0, arg1 interface{}) *gomock.Call

SubscribeUser indicates an expected call of SubscribeUser.

func (*MockUseCaseMockRecorder) UnsubscribeUser

func (mr *MockUseCaseMockRecorder) UnsubscribeUser(arg0, arg1 interface{}) *gomock.Call

UnsubscribeUser indicates an expected call of UnsubscribeUser.

Jump to

Keyboard shortcuts

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