handlerindex

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 handlerindex is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexHandler

type IndexHandler struct {
	// contains filtered or unexported fields
}

IndexHandler is a callback handler.

func New

func New(indexService IndexService) *IndexHandler

New creates a new index handler.

func (*IndexHandler) Get

func (h *IndexHandler) Get(c *fiber.Ctx) error

Get handles GET /indexes/:id request.

type IndexService

type IndexService interface {
	GetIndex(ctx context.Context, id int64) (*models.Index, error)
}

IndexService is an index service.

type MockIndexService

type MockIndexService struct {
	// contains filtered or unexported fields
}

MockIndexService is a mock of IndexService interface.

func NewMockIndexService

func NewMockIndexService(ctrl *gomock.Controller) *MockIndexService

NewMockIndexService creates a new mock instance.

func (*MockIndexService) EXPECT

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

func (*MockIndexService) GetIndex

func (m *MockIndexService) GetIndex(ctx context.Context, id int64) (*models.Index, error)

GetIndex mocks base method.

type MockIndexServiceMockRecorder

type MockIndexServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIndexServiceMockRecorder is the mock recorder for MockIndexService.

func (*MockIndexServiceMockRecorder) GetIndex

func (mr *MockIndexServiceMockRecorder) GetIndex(ctx, id interface{}) *gomock.Call

GetIndex indicates an expected call of GetIndex.

Jump to

Keyboard shortcuts

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