mocks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProjectsUsecase

type MockProjectsUsecase struct {
	CreateFn      func(ctx context.Context, name, description, thumbnailURL, websiteURL string, live bool, tags []string, postId int32) (*domain.Project, error)
	GetFn         func(ctx context.Context, id string) (*domain.Project, error)
	GetProjectsFn func(ctx context.Context) ([]*domain.Project, error)
}

func (*MockProjectsUsecase) Create

func (uc *MockProjectsUsecase) Create(ctx context.Context, name, description, thumbnailURL, websiteURL string, live bool, tags []string, postId int32) (*domain.Project, error)

func (*MockProjectsUsecase) Get

func (*MockProjectsUsecase) GetProjects

func (uc *MockProjectsUsecase) GetProjects(ctx context.Context) ([]*domain.Project, error)

Jump to

Keyboard shortcuts

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