serviceindex

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: 5 Imported by: 0

Documentation

Overview

Package serviceindex is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupService

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

GroupService is a group service.

func New

func New(repo Repository) *GroupService

New creates a new group service.

func (*GroupService) GetIndex

func (svc *GroupService) GetIndex(ctx context.Context, id int64) (*models.Index, error)

GetIndex returns index from repository by ID.

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) EXPECT

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

func (*MockRepository) GetIndex

func (m *MockRepository) GetIndex(arg0 context.Context, arg1 int64) (*models.Index, error)

GetIndex mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) GetIndex

func (mr *MockRepositoryMockRecorder) GetIndex(arg0, arg1 interface{}) *gomock.Call

GetIndex indicates an expected call of GetIndex.

type Repository

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

Repository is an index repository.

Jump to

Keyboard shortcuts

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