Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProjectNotFound = errors.New("storyapi: project not found") ErrCellNotFound = errors.New("storyapi: cell not found") )
Functions ¶
This section is empty.
Types ¶
type CellIterator ¶
type CellService ¶
type CellService interface {
GetCell(ctx context.Context, cellID string) (*Cell, error)
ListCells(ctx context.Context, filter SearchFilter) (CellIterator, error)
}
type MockCellService ¶
type MockCellService struct {
Cells map[string]*Cell
GetCellFunc func(ctx context.Context, cellID string) (*Cell, error)
ListCellsFunc func(ctx context.Context, filter SearchFilter) (CellIterator, error)
}
func NewMockCellService ¶
func NewMockCellService(cells ...Cell) *MockCellService
func (*MockCellService) ListCells ¶
func (m *MockCellService) ListCells(ctx context.Context, filter SearchFilter) (CellIterator, error)
type MockProjectService ¶
type MockProjectService struct {
Projects map[string]*Project
GetProjectFunc func(ctx context.Context, projectID string) (*Project, error)
}
func NewMockProjectService ¶
func NewMockProjectService(projects ...Project) *MockProjectService
func (*MockProjectService) GetProject ¶
type ProjectService ¶
type SearchFilter ¶
Click to show internal directories.
Click to hide internal directories.