Documentation ¶
Overview ¶
Package mock_chat is a generated GoMock package.
Package mock_chat is a generated GoMock package.
Package mock_chat is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) CreateMessage(ctx context.Context, roomID string, cm *chat.Message) error
- func (m *MockRepository) CreateRoom(ctx context.Context, cr *chat.Room) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetRoom(ctx context.Context, roomID string) (*chat.Room, error)
- func (m *MockRepository) ListRoom(ctx context.Context, p *firestore.Params, qs []*firestore.Query) (chat.Rooms, error)
- func (m *MockRepository) UpdateRoom(ctx context.Context, cr *chat.Room) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) CreateMessage(ctx, roomID, cm interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateRoom(ctx, cr interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetRoom(ctx, roomID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListRoom(ctx, p, qs interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateRoom(ctx, cr interface{}) *gomock.Call
- type MockUploader
- type MockUploaderMockRecorder
- type MockValidation
- type MockValidationMockRecorder
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) CreateMessage ¶
CreateMessage mocks base method.
func (*MockRepository) CreateRoom ¶
CreateRoom 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) ListRoom ¶
func (m *MockRepository) ListRoom(ctx context.Context, p *firestore.Params, qs []*firestore.Query) (chat.Rooms, error)
ListRoom mocks base method.
func (*MockRepository) UpdateRoom ¶
UpdateRoom mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) CreateMessage ¶
func (mr *MockRepositoryMockRecorder) CreateMessage(ctx, roomID, cm interface{}) *gomock.Call
CreateMessage indicates an expected call of CreateMessage.
func (*MockRepositoryMockRecorder) CreateRoom ¶
func (mr *MockRepositoryMockRecorder) CreateRoom(ctx, cr interface{}) *gomock.Call
CreateRoom indicates an expected call of CreateRoom.
func (*MockRepositoryMockRecorder) GetRoom ¶
func (mr *MockRepositoryMockRecorder) GetRoom(ctx, roomID interface{}) *gomock.Call
GetRoom indicates an expected call of GetRoom.
func (*MockRepositoryMockRecorder) ListRoom ¶
func (mr *MockRepositoryMockRecorder) ListRoom(ctx, p, qs interface{}) *gomock.Call
ListRoom indicates an expected call of ListRoom.
func (*MockRepositoryMockRecorder) UpdateRoom ¶
func (mr *MockRepositoryMockRecorder) UpdateRoom(ctx, cr interface{}) *gomock.Call
UpdateRoom indicates an expected call of UpdateRoom.
type MockUploader ¶
type MockUploader struct {
// contains filtered or unexported fields
}
MockUploader is a mock of Uploader interface.
func NewMockUploader ¶
func NewMockUploader(ctrl *gomock.Controller) *MockUploader
NewMockUploader creates a new mock instance.
func (*MockUploader) EXPECT ¶
func (m *MockUploader) EXPECT() *MockUploaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUploaderMockRecorder ¶
type MockUploaderMockRecorder struct {
// contains filtered or unexported fields
}
MockUploaderMockRecorder is the mock recorder for MockUploader.
func (*MockUploaderMockRecorder) Image ¶
func (mr *MockUploaderMockRecorder) Image(ctx, roomID, data interface{}) *gomock.Call
Image indicates an expected call of Image.
type MockValidation ¶
type MockValidation struct {
// contains filtered or unexported fields
}
MockValidation is a mock of Validation interface.
func NewMockValidation ¶
func NewMockValidation(ctrl *gomock.Controller) *MockValidation
NewMockValidation creates a new mock instance.
func (*MockValidation) EXPECT ¶
func (m *MockValidation) EXPECT() *MockValidationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockValidationMockRecorder ¶
type MockValidationMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationMockRecorder is the mock recorder for MockValidation.
func (*MockValidationMockRecorder) Message ¶
func (mr *MockValidationMockRecorder) Message(ctx, cm interface{}) *gomock.Call
Message indicates an expected call of Message.
func (*MockValidationMockRecorder) Room ¶
func (mr *MockValidationMockRecorder) Room(ctx, cr interface{}) *gomock.Call
Room indicates an expected call of Room.