handlergroup

package
v0.0.0-...-335c537 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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 New

func New(groupService GroupService) *GroupHandler

New creates a new group 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

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

func (*MockGroupService) GetGroup

func (m *MockGroupService) GetGroup(ctx context.Context, id int64) (*models.Group, error)

GetGroup mocks base method.

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.

Jump to

Keyboard shortcuts

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