Documentation ¶
Overview ¶
Package mock_application is a generated GoMock package.
Package mock_application is a generated GoMock package.
Index ¶
- type MockChatApplication
- func (m *MockChatApplication) CreateMessage(ctx context.Context, cr *chat.Room, cm *chat.Message) error
- func (m *MockChatApplication) CreateRoom(ctx context.Context, cr *chat.Room) error
- func (m *MockChatApplication) EXPECT() *MockChatApplicationMockRecorder
- func (m *MockChatApplication) GetRoom(ctx context.Context, roomID, userID string) (*chat.Room, error)
- func (m *MockChatApplication) ListRoom(ctx context.Context, userID string, p *firestore.Params) (chat.Rooms, error)
- func (m *MockChatApplication) UploadImage(ctx context.Context, cr *chat.Room, image []byte) (string, error)
- type MockChatApplicationMockRecorder
- func (mr *MockChatApplicationMockRecorder) CreateMessage(ctx, cr, cm interface{}) *gomock.Call
- func (mr *MockChatApplicationMockRecorder) CreateRoom(ctx, cr interface{}) *gomock.Call
- func (mr *MockChatApplicationMockRecorder) GetRoom(ctx, roomID, userID interface{}) *gomock.Call
- func (mr *MockChatApplicationMockRecorder) ListRoom(ctx, userID, p interface{}) *gomock.Call
- func (mr *MockChatApplicationMockRecorder) UploadImage(ctx, cr, image interface{}) *gomock.Call
- type MockUserApplication
- func (m *MockUserApplication) Authentication(ctx context.Context) (*user.User, error)
- func (m *MockUserApplication) Create(ctx context.Context, u *user.User) error
- func (m *MockUserApplication) Delete(ctx context.Context, u *user.User) error
- func (m *MockUserApplication) DeleteAdmin(ctx context.Context, u *user.User) error
- func (m *MockUserApplication) EXPECT() *MockUserApplicationMockRecorder
- func (m *MockUserApplication) Follow(ctx context.Context, userID, followerID string) (*user.User, error)
- func (m *MockUserApplication) Get(ctx context.Context, userID string) (*user.User, error)
- func (m *MockUserApplication) GetAdmin(ctx context.Context, userID string) (*user.User, error)
- func (m *MockUserApplication) GetUserProfile(ctx context.Context, userID, targetID string) (*user.User, error)
- func (m *MockUserApplication) List(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
- func (m *MockUserApplication) ListAdmin(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
- func (m *MockUserApplication) ListFollow(ctx context.Context, userID, targetID string, limit, offset int) (user.Follows, int, error)
- func (m *MockUserApplication) ListFollower(ctx context.Context, userID, targetID string, limit, offset int) (user.Followers, int, error)
- func (m *MockUserApplication) MultiGet(ctx context.Context, userIDs []string) (user.Users, error)
- func (m *MockUserApplication) Unfollow(ctx context.Context, userID, followerID string) (*user.User, error)
- func (m *MockUserApplication) Update(ctx context.Context, u *user.User) error
- func (m *MockUserApplication) UpdatePassword(ctx context.Context, u *user.User) error
- func (m *MockUserApplication) UploadThumbnail(ctx context.Context, userID string, thumbnail []byte) (string, error)
- type MockUserApplicationMockRecorder
- func (mr *MockUserApplicationMockRecorder) Authentication(ctx interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Create(ctx, u interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Delete(ctx, u interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) DeleteAdmin(ctx, u interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Follow(ctx, userID, followerID interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Get(ctx, userID interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) GetAdmin(ctx, userID interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) GetUserProfile(ctx, userID, targetID interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) List(ctx, q interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) ListAdmin(ctx, q interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) ListFollow(ctx, userID, targetID, limit, offset interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) ListFollower(ctx, userID, targetID, limit, offset interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) MultiGet(ctx, userIDs interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Unfollow(ctx, userID, followerID interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) Update(ctx, u interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) UpdatePassword(ctx, u interface{}) *gomock.Call
- func (mr *MockUserApplicationMockRecorder) UploadThumbnail(ctx, userID, thumbnail interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChatApplication ¶
type MockChatApplication struct {
// contains filtered or unexported fields
}
MockChatApplication is a mock of ChatApplication interface.
func NewMockChatApplication ¶
func NewMockChatApplication(ctrl *gomock.Controller) *MockChatApplication
NewMockChatApplication creates a new mock instance.
func (*MockChatApplication) CreateMessage ¶
func (m *MockChatApplication) CreateMessage(ctx context.Context, cr *chat.Room, cm *chat.Message) error
CreateMessage mocks base method.
func (*MockChatApplication) CreateRoom ¶
CreateRoom mocks base method.
func (*MockChatApplication) EXPECT ¶
func (m *MockChatApplication) EXPECT() *MockChatApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChatApplication) GetRoom ¶
func (m *MockChatApplication) GetRoom(ctx context.Context, roomID, userID string) (*chat.Room, error)
GetRoom mocks base method.
func (*MockChatApplication) ListRoom ¶
func (m *MockChatApplication) ListRoom(ctx context.Context, userID string, p *firestore.Params) (chat.Rooms, error)
ListRoom mocks base method.
func (*MockChatApplication) UploadImage ¶
func (m *MockChatApplication) UploadImage(ctx context.Context, cr *chat.Room, image []byte) (string, error)
UploadImage mocks base method.
type MockChatApplicationMockRecorder ¶
type MockChatApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockChatApplicationMockRecorder is the mock recorder for MockChatApplication.
func (*MockChatApplicationMockRecorder) CreateMessage ¶
func (mr *MockChatApplicationMockRecorder) CreateMessage(ctx, cr, cm interface{}) *gomock.Call
CreateMessage indicates an expected call of CreateMessage.
func (*MockChatApplicationMockRecorder) CreateRoom ¶
func (mr *MockChatApplicationMockRecorder) CreateRoom(ctx, cr interface{}) *gomock.Call
CreateRoom indicates an expected call of CreateRoom.
func (*MockChatApplicationMockRecorder) GetRoom ¶
func (mr *MockChatApplicationMockRecorder) GetRoom(ctx, roomID, userID interface{}) *gomock.Call
GetRoom indicates an expected call of GetRoom.
func (*MockChatApplicationMockRecorder) ListRoom ¶
func (mr *MockChatApplicationMockRecorder) ListRoom(ctx, userID, p interface{}) *gomock.Call
ListRoom indicates an expected call of ListRoom.
func (*MockChatApplicationMockRecorder) UploadImage ¶
func (mr *MockChatApplicationMockRecorder) UploadImage(ctx, cr, image interface{}) *gomock.Call
UploadImage indicates an expected call of UploadImage.
type MockUserApplication ¶
type MockUserApplication struct {
// contains filtered or unexported fields
}
MockUserApplication is a mock of UserApplication interface.
func NewMockUserApplication ¶
func NewMockUserApplication(ctrl *gomock.Controller) *MockUserApplication
NewMockUserApplication creates a new mock instance.
func (*MockUserApplication) Authentication ¶
Authentication mocks base method.
func (*MockUserApplication) DeleteAdmin ¶
DeleteAdmin mocks base method.
func (*MockUserApplication) EXPECT ¶
func (m *MockUserApplication) EXPECT() *MockUserApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserApplication) Follow ¶
func (m *MockUserApplication) Follow(ctx context.Context, userID, followerID string) (*user.User, error)
Follow mocks base method.
func (*MockUserApplication) GetUserProfile ¶
func (m *MockUserApplication) GetUserProfile(ctx context.Context, userID, targetID string) (*user.User, error)
GetUserProfile mocks base method.
func (*MockUserApplication) List ¶
func (m *MockUserApplication) List(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
List mocks base method.
func (*MockUserApplication) ListAdmin ¶
func (m *MockUserApplication) ListAdmin(ctx context.Context, q *database.ListQuery) (user.Users, int, error)
ListAdmin mocks base method.
func (*MockUserApplication) ListFollow ¶
func (m *MockUserApplication) ListFollow(ctx context.Context, userID, targetID string, limit, offset int) (user.Follows, int, error)
ListFollow mocks base method.
func (*MockUserApplication) ListFollower ¶
func (m *MockUserApplication) ListFollower(ctx context.Context, userID, targetID string, limit, offset int) (user.Followers, int, error)
ListFollower mocks base method.
func (*MockUserApplication) Unfollow ¶
func (m *MockUserApplication) Unfollow(ctx context.Context, userID, followerID string) (*user.User, error)
Unfollow mocks base method.
func (*MockUserApplication) UpdatePassword ¶
UpdatePassword mocks base method.
func (*MockUserApplication) UploadThumbnail ¶
func (m *MockUserApplication) UploadThumbnail(ctx context.Context, userID string, thumbnail []byte) (string, error)
UploadThumbnail mocks base method.
type MockUserApplicationMockRecorder ¶
type MockUserApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockUserApplicationMockRecorder is the mock recorder for MockUserApplication.
func (*MockUserApplicationMockRecorder) Authentication ¶
func (mr *MockUserApplicationMockRecorder) Authentication(ctx interface{}) *gomock.Call
Authentication indicates an expected call of Authentication.
func (*MockUserApplicationMockRecorder) Create ¶
func (mr *MockUserApplicationMockRecorder) Create(ctx, u interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserApplicationMockRecorder) Delete ¶
func (mr *MockUserApplicationMockRecorder) Delete(ctx, u interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserApplicationMockRecorder) DeleteAdmin ¶
func (mr *MockUserApplicationMockRecorder) DeleteAdmin(ctx, u interface{}) *gomock.Call
DeleteAdmin indicates an expected call of DeleteAdmin.
func (*MockUserApplicationMockRecorder) Follow ¶
func (mr *MockUserApplicationMockRecorder) Follow(ctx, userID, followerID interface{}) *gomock.Call
Follow indicates an expected call of Follow.
func (*MockUserApplicationMockRecorder) Get ¶
func (mr *MockUserApplicationMockRecorder) Get(ctx, userID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUserApplicationMockRecorder) GetAdmin ¶
func (mr *MockUserApplicationMockRecorder) GetAdmin(ctx, userID interface{}) *gomock.Call
GetAdmin indicates an expected call of GetAdmin.
func (*MockUserApplicationMockRecorder) GetUserProfile ¶
func (mr *MockUserApplicationMockRecorder) GetUserProfile(ctx, userID, targetID interface{}) *gomock.Call
GetUserProfile indicates an expected call of GetUserProfile.
func (*MockUserApplicationMockRecorder) List ¶
func (mr *MockUserApplicationMockRecorder) List(ctx, q interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockUserApplicationMockRecorder) ListAdmin ¶
func (mr *MockUserApplicationMockRecorder) ListAdmin(ctx, q interface{}) *gomock.Call
ListAdmin indicates an expected call of ListAdmin.
func (*MockUserApplicationMockRecorder) ListFollow ¶
func (mr *MockUserApplicationMockRecorder) ListFollow(ctx, userID, targetID, limit, offset interface{}) *gomock.Call
ListFollow indicates an expected call of ListFollow.
func (*MockUserApplicationMockRecorder) ListFollower ¶
func (mr *MockUserApplicationMockRecorder) ListFollower(ctx, userID, targetID, limit, offset interface{}) *gomock.Call
ListFollower indicates an expected call of ListFollower.
func (*MockUserApplicationMockRecorder) MultiGet ¶
func (mr *MockUserApplicationMockRecorder) MultiGet(ctx, userIDs interface{}) *gomock.Call
MultiGet indicates an expected call of MultiGet.
func (*MockUserApplicationMockRecorder) Unfollow ¶
func (mr *MockUserApplicationMockRecorder) Unfollow(ctx, userID, followerID interface{}) *gomock.Call
Unfollow indicates an expected call of Unfollow.
func (*MockUserApplicationMockRecorder) Update ¶
func (mr *MockUserApplicationMockRecorder) Update(ctx, u interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUserApplicationMockRecorder) UpdatePassword ¶
func (mr *MockUserApplicationMockRecorder) UpdatePassword(ctx, u interface{}) *gomock.Call
UpdatePassword indicates an expected call of UpdatePassword.
func (*MockUserApplicationMockRecorder) UploadThumbnail ¶
func (mr *MockUserApplicationMockRecorder) UploadThumbnail(ctx, userID, thumbnail interface{}) *gomock.Call
UploadThumbnail indicates an expected call of UploadThumbnail.