Documentation ¶
Index ¶
- type ArticleService
- func (as *ArticleService) CreateArticle(ctx context.Context, in *pb.CreateArticleRequest) (*pb.Article, error)
- func (as *ArticleService) DeleteArticle(ctx context.Context, in *pb.DeleteArticleRequest) (*emptypb.Empty, error)
- func (as *ArticleService) GetArticle(ctx context.Context, in *pb.GetArticleRequest) (*pb.Article, error)
- func (as *ArticleService) ListArticles(ctx context.Context, in *pb.ListArticlesRequest) (*pb.ListArticlesResponse, error)
- func (as *ArticleService) SearchArticles(ctx context.Context, in *pb.SearchArticlesRequest) (*pb.SearchArticlesResponse, error)
- func (as *ArticleService) UpdateArticle(ctx context.Context, in *pb.UpdateArticleRequest) (*pb.Article, error)
- type AttributeService
- func (as *AttributeService) CreateAttribute(ctx context.Context, in *pb.CreateAttributeRequest) (*pb.Attribute, error)
- func (as *AttributeService) DeleteAttribute(ctx context.Context, in *pb.DeleteAttributeRequest) (*emptypb.Empty, error)
- func (as *AttributeService) GetAttribute(ctx context.Context, in *pb.GetAttributeRequest) (*pb.Attribute, error)
- func (as *AttributeService) ListAttributes(ctx context.Context, in *pb.ListAttributesRequest) (*pb.ListAttributesResponse, error)
- func (as *AttributeService) SearchAttributes(ctx context.Context, in *pb.SearchAttributesRequest) (*pb.SearchAttributesResponse, error)
- func (as *AttributeService) UpdateAttribute(ctx context.Context, in *pb.UpdateAttributeRequest) (*pb.Attribute, error)
- type CategoryService
- func (cs *CategoryService) CreateCategory(ctx context.Context, in *pb.CreateCategoryRequest) (*pb.Category, error)
- func (cs *CategoryService) DeleteCategory(ctx context.Context, in *pb.DeleteCategoryRequest) (*emptypb.Empty, error)
- func (cs *CategoryService) GetCategory(ctx context.Context, in *pb.GetCategoryRequest) (*pb.Category, error)
- func (cs *CategoryService) ListCategories(ctx context.Context, in *pb.ListCategoriesRequest) (*pb.ListCategoriesResponse, error)
- func (cs *CategoryService) UpdateCategory(ctx context.Context, in *pb.UpdateCategoryRequest) (*pb.Category, error)
- type TagService
- func (ts *TagService) CreateTag(ctx context.Context, in *pb.CreateTagRequest) (*pb.Tag, error)
- func (ts *TagService) DeleteTag(ctx context.Context, in *pb.DeleteTagRequest) (*emptypb.Empty, error)
- func (ts *TagService) GetTag(ctx context.Context, in *pb.GetTagRequest) (*pb.Tag, error)
- func (ts *TagService) ListTags(ctx context.Context, in *pb.ListTagsRequest) (*pb.ListTagsResponse, error)
- func (ts *TagService) UpdateTag(ctx context.Context, in *pb.UpdateTagRequest) (*pb.Tag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleService ¶
type ArticleService struct { pb.UnimplementedArticlesAPIServer // contains filtered or unexported fields }
func NewArticleService ¶
func NewArticleService() (*ArticleService, error)
func (*ArticleService) CreateArticle ¶
func (as *ArticleService) CreateArticle(ctx context.Context, in *pb.CreateArticleRequest) (*pb.Article, error)
func (*ArticleService) DeleteArticle ¶
func (as *ArticleService) DeleteArticle(ctx context.Context, in *pb.DeleteArticleRequest) (*emptypb.Empty, error)
func (*ArticleService) GetArticle ¶
func (as *ArticleService) GetArticle(ctx context.Context, in *pb.GetArticleRequest) (*pb.Article, error)
func (*ArticleService) ListArticles ¶
func (as *ArticleService) ListArticles(ctx context.Context, in *pb.ListArticlesRequest) (*pb.ListArticlesResponse, error)
func (*ArticleService) SearchArticles ¶
func (as *ArticleService) SearchArticles(ctx context.Context, in *pb.SearchArticlesRequest) (*pb.SearchArticlesResponse, error)
func (*ArticleService) UpdateArticle ¶
func (as *ArticleService) UpdateArticle(ctx context.Context, in *pb.UpdateArticleRequest) (*pb.Article, error)
type AttributeService ¶
type AttributeService struct { pb.UnimplementedAttributesAPIServer // contains filtered or unexported fields }
func NewAttributeService ¶
func NewAttributeService() (*AttributeService, error)
func (*AttributeService) CreateAttribute ¶
func (as *AttributeService) CreateAttribute(ctx context.Context, in *pb.CreateAttributeRequest) (*pb.Attribute, error)
func (*AttributeService) DeleteAttribute ¶
func (as *AttributeService) DeleteAttribute(ctx context.Context, in *pb.DeleteAttributeRequest) (*emptypb.Empty, error)
func (*AttributeService) GetAttribute ¶
func (as *AttributeService) GetAttribute(ctx context.Context, in *pb.GetAttributeRequest) (*pb.Attribute, error)
func (*AttributeService) ListAttributes ¶
func (as *AttributeService) ListAttributes(ctx context.Context, in *pb.ListAttributesRequest) (*pb.ListAttributesResponse, error)
func (*AttributeService) SearchAttributes ¶
func (as *AttributeService) SearchAttributes(ctx context.Context, in *pb.SearchAttributesRequest) (*pb.SearchAttributesResponse, error)
func (*AttributeService) UpdateAttribute ¶
func (as *AttributeService) UpdateAttribute(ctx context.Context, in *pb.UpdateAttributeRequest) (*pb.Attribute, error)
type CategoryService ¶
type CategoryService struct { pb.UnimplementedCategoriesAPIServer // contains filtered or unexported fields }
func NewCategoryService ¶
func NewCategoryService() (*CategoryService, error)
func (*CategoryService) CreateCategory ¶
func (cs *CategoryService) CreateCategory(ctx context.Context, in *pb.CreateCategoryRequest) (*pb.Category, error)
func (*CategoryService) DeleteCategory ¶
func (cs *CategoryService) DeleteCategory(ctx context.Context, in *pb.DeleteCategoryRequest) (*emptypb.Empty, error)
func (*CategoryService) GetCategory ¶
func (cs *CategoryService) GetCategory(ctx context.Context, in *pb.GetCategoryRequest) (*pb.Category, error)
func (*CategoryService) ListCategories ¶
func (cs *CategoryService) ListCategories(ctx context.Context, in *pb.ListCategoriesRequest) (*pb.ListCategoriesResponse, error)
func (*CategoryService) UpdateCategory ¶
func (cs *CategoryService) UpdateCategory(ctx context.Context, in *pb.UpdateCategoryRequest) (*pb.Category, error)
type TagService ¶
type TagService struct { pb.UnimplementedTagsAPIServer // contains filtered or unexported fields }
func NewTagService ¶
func NewTagService() (*TagService, error)
func (*TagService) CreateTag ¶
func (ts *TagService) CreateTag(ctx context.Context, in *pb.CreateTagRequest) (*pb.Tag, error)
func (*TagService) DeleteTag ¶
func (ts *TagService) DeleteTag(ctx context.Context, in *pb.DeleteTagRequest) (*emptypb.Empty, error)
func (*TagService) GetTag ¶
func (ts *TagService) GetTag(ctx context.Context, in *pb.GetTagRequest) (*pb.Tag, error)
func (*TagService) ListTags ¶
func (ts *TagService) ListTags(ctx context.Context, in *pb.ListTagsRequest) (*pb.ListTagsResponse, error)
func (*TagService) UpdateTag ¶
func (ts *TagService) UpdateTag(ctx context.Context, in *pb.UpdateTagRequest) (*pb.Tag, error)
Click to show internal directories.
Click to hide internal directories.