Documentation ¶
Overview ¶
Package handlergroup is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupHandler ¶
type GroupHandler struct {
// contains filtered or unexported fields
}
GroupHandler is a callback handler.
func (*GroupHandler) Get ¶
func (h *GroupHandler) Get(c *fiber.Ctx) error
Get handles GET /groups/:id request.
func (*GroupHandler) GetAll ¶
func (h *GroupHandler) GetAll(c *fiber.Ctx) error
GetAll handles GET /groups request.
type GroupService ¶
type GroupService interface { GetGroupIDs(ctx context.Context) ([]int64, error) GetGroup(ctx context.Context, id int64) (*models.Group, error) }
GroupService is a group service.
type MockGroupService ¶
type MockGroupService struct {
// contains filtered or unexported fields
}
MockGroupService is a mock of GroupService interface.
func NewMockGroupService ¶
func NewMockGroupService(ctrl *gomock.Controller) *MockGroupService
NewMockGroupService creates a new mock instance.
func (*MockGroupService) EXPECT ¶
func (m *MockGroupService) EXPECT() *MockGroupServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGroupService) GetGroupIDs ¶
func (m *MockGroupService) GetGroupIDs(ctx context.Context) ([]int64, error)
GetGroupIDs mocks base method.
type MockGroupServiceMockRecorder ¶
type MockGroupServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockGroupServiceMockRecorder is the mock recorder for MockGroupService.
func (*MockGroupServiceMockRecorder) GetGroup ¶
func (mr *MockGroupServiceMockRecorder) GetGroup(ctx, id interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup.
func (*MockGroupServiceMockRecorder) GetGroupIDs ¶
func (mr *MockGroupServiceMockRecorder) GetGroupIDs(ctx interface{}) *gomock.Call
GetGroupIDs indicates an expected call of GetGroupIDs.
Click to show internal directories.
Click to hide internal directories.