service

package
v0.0.0-...-2172325 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (*ArticleService) SearchArticles

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 (*AttributeService) SearchAttributes

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 (*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)

Jump to

Keyboard shortcuts

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