Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryService ¶
type CategoryService interface { GetCategory(ctx context.Context, req *api.GetCategoryRequest) (*api.GetCategoryResponse, error) ListCategories(ctx context.Context, req *api.ListCategoriesRequest) (*api.ListCategoriesResponse, error) CreateCategory(ctx context.Context, req *api.CreateCategoryRequest, name string, desc string) (*api.CreateCategoryResponse, error) UpdateCategory(ctx context.Context, req *api.UpdateCategoryRequest, name string, desc string) (*api.UpdateCategoryResponse, error) DeleteCategory(ctx context.Context, req *api.DeleteCategoryRequest) (*api.DeleteCategoryResponse, error) }
func NewCategoryService ¶
func NewCategoryService(repo repository.CategoryRepository, logger *logger.Log) CategoryService
Click to show internal directories.
Click to hide internal directories.