Documentation ¶
Index ¶
- type Server
- func (*Server) CreateCategory(ctx context.Context, req *categorypb.CreateCategoryRequest) (*categorypb.CreateCategoryResponse, error)
- func (*Server) DeleteCategory(ctx context.Context, req *categorypb.DeleteCategoryRequest) (*categorypb.DeleteCategoryResponse, error)
- func (*Server) ListCategory(ctx context.Context, req *categorypb.ListCategoryRequest) (*categorypb.ListCategoryResponse, error)
- func (*Server) ShowCategory(ctx context.Context, req *categorypb.ShowCategoryRequest) (*categorypb.ShowCategoryResponse, error)
- func (*Server) UpdateCategory(ctx context.Context, req *categorypb.UpdateCategoryRequest) (*categorypb.UpdateCategoryResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
Server instance
func (*Server) CreateCategory ¶
func (*Server) CreateCategory(ctx context.Context, req *categorypb.CreateCategoryRequest) (*categorypb.CreateCategoryResponse, error)
CreateCategory - create and save category to database
func (*Server) DeleteCategory ¶
func (*Server) DeleteCategory(ctx context.Context, req *categorypb.DeleteCategoryRequest) (*categorypb.DeleteCategoryResponse, error)
DeleteCategory - delete category by it's uuid
func (*Server) ListCategory ¶
func (*Server) ListCategory(ctx context.Context, req *categorypb.ListCategoryRequest) (*categorypb.ListCategoryResponse, error)
ListCategory - get list of categories
func (*Server) ShowCategory ¶
func (*Server) ShowCategory(ctx context.Context, req *categorypb.ShowCategoryRequest) (*categorypb.ShowCategoryResponse, error)
ShowCategory - show a single category data
func (*Server) UpdateCategory ¶
func (*Server) UpdateCategory(ctx context.Context, req *categorypb.UpdateCategoryRequest) (*categorypb.UpdateCategoryResponse, error)
UpdateCategory - update a single category
Click to show internal directories.
Click to hide internal directories.