Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(userID int, notificationType string, data interface{}) (int, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(notificationID int) (*models.Notification, error)
- func (m *MockRepository) ListUnreadByUser(userID int) ([]models.Notification, error)
- func (m *MockRepository) MarkAsRead(notificationID int) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(userID, notificationType, data interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(notificationID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListUnreadByUser(userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) MarkAsRead(notificationID interface{}) *gomock.Call
- type MockService
- func (m *MockService) Create(userID int, notificationType string, data interface{}) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) HandleConnection(userID int, conn *websocket.Conn) error
- func (m *MockService) ListUnreadByUser(userID int) ([]models.Notification, error)
- type MockServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Create ¶
func (m *MockRepository) Create(userID int, notificationType string, data interface{}) (int, error)
Create mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) Get ¶
func (m *MockRepository) Get(notificationID int) (*models.Notification, error)
Get mocks base method.
func (*MockRepository) ListUnreadByUser ¶
func (m *MockRepository) ListUnreadByUser(userID int) ([]models.Notification, error)
ListUnreadByUser mocks base method.
func (*MockRepository) MarkAsRead ¶
func (m *MockRepository) MarkAsRead(notificationID int) error
MarkAsRead mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(userID, notificationType, data interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(notificationID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) ListUnreadByUser ¶
func (mr *MockRepositoryMockRecorder) ListUnreadByUser(userID interface{}) *gomock.Call
ListUnreadByUser indicates an expected call of ListUnreadByUser.
func (*MockRepositoryMockRecorder) MarkAsRead ¶
func (mr *MockRepositoryMockRecorder) MarkAsRead(notificationID interface{}) *gomock.Call
MarkAsRead indicates an expected call of MarkAsRead.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) Create ¶
func (m *MockService) Create(userID int, notificationType string, data interface{}) error
Create mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) HandleConnection ¶
func (m *MockService) HandleConnection(userID int, conn *websocket.Conn) error
HandleConnection mocks base method.
func (*MockService) ListUnreadByUser ¶
func (m *MockService) ListUnreadByUser(userID int) ([]models.Notification, error)
ListUnreadByUser mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Create ¶
func (mr *MockServiceMockRecorder) Create(userID, notificationType, data interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockServiceMockRecorder) HandleConnection ¶
func (mr *MockServiceMockRecorder) HandleConnection(userID, conn interface{}) *gomock.Call
HandleConnection indicates an expected call of HandleConnection.
func (*MockServiceMockRecorder) ListUnreadByUser ¶
func (mr *MockServiceMockRecorder) ListUnreadByUser(userID interface{}) *gomock.Call
ListUnreadByUser indicates an expected call of ListUnreadByUser.