Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterArticlesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterArticlesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArticlesAPIClient) error
- func RegisterArticlesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterArticlesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArticlesAPIServer) error
- func RegisterArticlesAPIServer(s grpc.ServiceRegistrar, srv ArticlesAPIServer)
- func RegisterAttributesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAttributesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttributesAPIClient) error
- func RegisterAttributesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAttributesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttributesAPIServer) error
- func RegisterAttributesAPIServer(s grpc.ServiceRegistrar, srv AttributesAPIServer)
- func RegisterCategoriesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCategoriesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CategoriesAPIClient) error
- func RegisterCategoriesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCategoriesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CategoriesAPIServer) error
- func RegisterCategoriesAPIServer(s grpc.ServiceRegistrar, srv CategoriesAPIServer)
- func RegisterTagsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTagsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagsAPIClient) error
- func RegisterTagsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTagsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagsAPIServer) error
- func RegisterTagsAPIServer(s grpc.ServiceRegistrar, srv TagsAPIServer)
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetArticleId() string
- func (x *Article) GetAttributes() []*Attribute
- func (x *Article) GetCategory() *Category
- func (x *Article) GetCategoryId() int32
- func (x *Article) GetContent() string
- func (x *Article) GetName() string
- func (x *Article) GetTags() []*Tag
- func (x *Article) GetTitle() string
- func (x *Article) GetUpdateTime() *timestamppb.Timestamp
- func (x *Article) GetUserId() int32
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type ArticlesAPIClient
- type ArticlesAPIServer
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Attribute) GetArticleId() string
- func (x *Attribute) GetAttributeId() int32
- func (x *Attribute) GetDescription() string
- func (x *Attribute) GetName() string
- func (x *Attribute) GetPath() string
- func (x *Attribute) GetUpdateTime() *timestamppb.Timestamp
- func (x *Attribute) GetUserId() int32
- func (*Attribute) ProtoMessage()
- func (x *Attribute) ProtoReflect() protoreflect.Message
- func (x *Attribute) Reset()
- func (x *Attribute) String() string
- type AttributesAPIClient
- type AttributesAPIServer
- type CategoriesAPIClient
- type CategoriesAPIServer
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCategoryCode() string
- func (x *Category) GetCategoryId() int32
- func (x *Category) GetCategoryName() string
- func (x *Category) GetName() string
- func (x *Category) GetUpdateTime() *timestamppb.Timestamp
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CreateArticleRequest
- func (*CreateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleRequest) GetArticle() *Article
- func (x *CreateArticleRequest) GetArticleId() string
- func (x *CreateArticleRequest) GetParent() string
- func (*CreateArticleRequest) ProtoMessage()
- func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateArticleRequest) Reset()
- func (x *CreateArticleRequest) String() string
- type CreateAttributeRequest
- func (*CreateAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAttributeRequest) GetAttribute() *Attribute
- func (x *CreateAttributeRequest) GetName() string
- func (*CreateAttributeRequest) ProtoMessage()
- func (x *CreateAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAttributeRequest) Reset()
- func (x *CreateAttributeRequest) String() string
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetCategory() *Category
- func (x *CreateCategoryRequest) GetName() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- type CreateTagRequest
- func (*CreateTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTagRequest) GetName() string
- func (x *CreateTagRequest) GetTag() *Tag
- func (*CreateTagRequest) ProtoMessage()
- func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTagRequest) Reset()
- func (x *CreateTagRequest) String() string
- type DeleteArticleRequest
- func (*DeleteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleRequest) GetName() string
- func (*DeleteArticleRequest) ProtoMessage()
- func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleRequest) Reset()
- func (x *DeleteArticleRequest) String() string
- type DeleteAttributeRequest
- func (*DeleteAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAttributeRequest) GetName() string
- func (*DeleteAttributeRequest) ProtoMessage()
- func (x *DeleteAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAttributeRequest) Reset()
- func (x *DeleteAttributeRequest) String() string
- type DeleteCategoryRequest
- func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCategoryRequest) GetName() string
- func (*DeleteCategoryRequest) ProtoMessage()
- func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCategoryRequest) Reset()
- func (x *DeleteCategoryRequest) String() string
- type DeleteTagRequest
- type GetArticleRequest
- type GetAttributeRequest
- func (*GetAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttributeRequest) GetName() string
- func (*GetAttributeRequest) ProtoMessage()
- func (x *GetAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *GetAttributeRequest) Reset()
- func (x *GetAttributeRequest) String() string
- type GetCategoryRequest
- func (*GetCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryRequest) GetName() string
- func (*GetCategoryRequest) ProtoMessage()
- func (x *GetCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetCategoryRequest) Reset()
- func (x *GetCategoryRequest) String() string
- type GetTagRequest
- type ListArticlesRequest
- func (*ListArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticlesRequest) GetPageSize() int32
- func (x *ListArticlesRequest) GetPageToken() string
- func (x *ListArticlesRequest) GetParent() string
- func (*ListArticlesRequest) ProtoMessage()
- func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *ListArticlesRequest) Reset()
- func (x *ListArticlesRequest) String() string
- type ListArticlesResponse
- func (*ListArticlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticlesResponse) GetArticles() []*Article
- func (x *ListArticlesResponse) GetNextPageToken() string
- func (*ListArticlesResponse) ProtoMessage()
- func (x *ListArticlesResponse) ProtoReflect() protoreflect.Message
- func (x *ListArticlesResponse) Reset()
- func (x *ListArticlesResponse) String() string
- type ListAttributesRequest
- func (*ListAttributesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAttributesRequest) GetPageSize() int32
- func (x *ListAttributesRequest) GetPageToken() string
- func (x *ListAttributesRequest) GetParent() string
- func (*ListAttributesRequest) ProtoMessage()
- func (x *ListAttributesRequest) ProtoReflect() protoreflect.Message
- func (x *ListAttributesRequest) Reset()
- func (x *ListAttributesRequest) String() string
- type ListAttributesResponse
- func (*ListAttributesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAttributesResponse) GetAttributes() []*Attribute
- func (x *ListAttributesResponse) GetNextPageToken() string
- func (*ListAttributesResponse) ProtoMessage()
- func (x *ListAttributesResponse) ProtoReflect() protoreflect.Message
- func (x *ListAttributesResponse) Reset()
- func (x *ListAttributesResponse) String() string
- type ListCategoriesRequest
- func (*ListCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesRequest) GetPageSize() int32
- func (x *ListCategoriesRequest) GetPageToken() string
- func (x *ListCategoriesRequest) GetParent() string
- func (*ListCategoriesRequest) ProtoMessage()
- func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesRequest) Reset()
- func (x *ListCategoriesRequest) String() string
- type ListCategoriesResponse
- func (*ListCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesResponse) GetCategories() []*Category
- func (x *ListCategoriesResponse) GetNextPageToken() string
- func (*ListCategoriesResponse) ProtoMessage()
- func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesResponse) Reset()
- func (x *ListCategoriesResponse) String() string
- type ListTagsRequest
- func (*ListTagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTagsRequest) GetPageSize() int32
- func (x *ListTagsRequest) GetPageToken() string
- func (x *ListTagsRequest) GetParent() string
- func (*ListTagsRequest) ProtoMessage()
- func (x *ListTagsRequest) ProtoReflect() protoreflect.Message
- func (x *ListTagsRequest) Reset()
- func (x *ListTagsRequest) String() string
- type ListTagsResponse
- func (*ListTagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTagsResponse) GetNextPageToken() string
- func (x *ListTagsResponse) GetTags() []*Tag
- func (*ListTagsResponse) ProtoMessage()
- func (x *ListTagsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTagsResponse) Reset()
- func (x *ListTagsResponse) String() string
- type SearchArticlesRequest
- func (*SearchArticlesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchArticlesRequest) GetName() string
- func (*SearchArticlesRequest) ProtoMessage()
- func (x *SearchArticlesRequest) ProtoReflect() protoreflect.Message
- func (x *SearchArticlesRequest) Reset()
- func (x *SearchArticlesRequest) String() string
- type SearchArticlesResponse
- func (*SearchArticlesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchArticlesResponse) GetArticles() []*Article
- func (x *SearchArticlesResponse) GetNextPageToken() string
- func (*SearchArticlesResponse) ProtoMessage()
- func (x *SearchArticlesResponse) ProtoReflect() protoreflect.Message
- func (x *SearchArticlesResponse) Reset()
- func (x *SearchArticlesResponse) String() string
- type SearchAttributesRequest
- func (*SearchAttributesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAttributesRequest) GetName() string
- func (*SearchAttributesRequest) ProtoMessage()
- func (x *SearchAttributesRequest) ProtoReflect() protoreflect.Message
- func (x *SearchAttributesRequest) Reset()
- func (x *SearchAttributesRequest) String() string
- type SearchAttributesResponse
- func (*SearchAttributesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchAttributesResponse) GetAttributes() []*Attribute
- func (x *SearchAttributesResponse) GetNextPageToken() string
- func (*SearchAttributesResponse) ProtoMessage()
- func (x *SearchAttributesResponse) ProtoReflect() protoreflect.Message
- func (x *SearchAttributesResponse) Reset()
- func (x *SearchAttributesResponse) String() string
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)deprecated
- func (x *Tag) GetName() string
- func (x *Tag) GetTagId() int32
- func (x *Tag) GetTagName() string
- func (x *Tag) GetUpdateTime() *timestamppb.Timestamp
- func (*Tag) ProtoMessage()
- func (x *Tag) ProtoReflect() protoreflect.Message
- func (x *Tag) Reset()
- func (x *Tag) String() string
- type TagsAPIClient
- type TagsAPIServer
- type UnimplementedArticlesAPIServer
- func (UnimplementedArticlesAPIServer) CreateArticle(context.Context, *CreateArticleRequest) (*Article, error)
- func (UnimplementedArticlesAPIServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error)
- func (UnimplementedArticlesAPIServer) GetArticle(context.Context, *GetArticleRequest) (*Article, error)
- func (UnimplementedArticlesAPIServer) ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
- func (UnimplementedArticlesAPIServer) SearchArticles(context.Context, *SearchArticlesRequest) (*SearchArticlesResponse, error)
- func (UnimplementedArticlesAPIServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*Article, error)
- type UnimplementedAttributesAPIServer
- func (UnimplementedAttributesAPIServer) CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error)
- func (UnimplementedAttributesAPIServer) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error)
- func (UnimplementedAttributesAPIServer) GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error)
- func (UnimplementedAttributesAPIServer) ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error)
- func (UnimplementedAttributesAPIServer) SearchAttributes(context.Context, *SearchAttributesRequest) (*SearchAttributesResponse, error)
- func (UnimplementedAttributesAPIServer) UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error)
- type UnimplementedCategoriesAPIServer
- func (UnimplementedCategoriesAPIServer) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error)
- func (UnimplementedCategoriesAPIServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error)
- func (UnimplementedCategoriesAPIServer) GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
- func (UnimplementedCategoriesAPIServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
- func (UnimplementedCategoriesAPIServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error)
- type UnimplementedTagsAPIServer
- func (UnimplementedTagsAPIServer) CreateTag(context.Context, *CreateTagRequest) (*Tag, error)
- func (UnimplementedTagsAPIServer) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error)
- func (UnimplementedTagsAPIServer) GetTag(context.Context, *GetTagRequest) (*Tag, error)
- func (UnimplementedTagsAPIServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
- func (UnimplementedTagsAPIServer) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error)
- type UnsafeArticlesAPIServer
- type UnsafeAttributesAPIServer
- type UnsafeCategoriesAPIServer
- type UnsafeTagsAPIServer
- type UpdateArticleRequest
- func (*UpdateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest) GetArticle() *Article
- func (x *UpdateArticleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateArticleRequest) ProtoMessage()
- func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest) Reset()
- func (x *UpdateArticleRequest) String() string
- type UpdateAttributeRequest
- func (*UpdateAttributeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAttributeRequest) GetAttribute() *Attribute
- func (*UpdateAttributeRequest) ProtoMessage()
- func (x *UpdateAttributeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAttributeRequest) Reset()
- func (x *UpdateAttributeRequest) String() string
- type UpdateCategoryRequest
- func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCategoryRequest) GetCategory() *Category
- func (*UpdateCategoryRequest) ProtoMessage()
- func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCategoryRequest) Reset()
- func (x *UpdateCategoryRequest) String() string
- type UpdateTagRequest
Constants ¶
This section is empty.
Variables ¶
var ArticlesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hfcms.articles.v1.ArticlesAPI", HandlerType: (*ArticlesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListArticles", Handler: _ArticlesAPI_ListArticles_Handler, }, { MethodName: "GetArticle", Handler: _ArticlesAPI_GetArticle_Handler, }, { MethodName: "SearchArticles", Handler: _ArticlesAPI_SearchArticles_Handler, }, { MethodName: "CreateArticle", Handler: _ArticlesAPI_CreateArticle_Handler, }, { MethodName: "UpdateArticle", Handler: _ArticlesAPI_UpdateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _ArticlesAPI_DeleteArticle_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/articles/v1/hfcms-articles.proto", }
ArticlesAPI_ServiceDesc is the grpc.ServiceDesc for ArticlesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var AttributesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hfcms.articles.v1.AttributesAPI", HandlerType: (*AttributesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListAttributes", Handler: _AttributesAPI_ListAttributes_Handler, }, { MethodName: "GetAttribute", Handler: _AttributesAPI_GetAttribute_Handler, }, { MethodName: "SearchAttributes", Handler: _AttributesAPI_SearchAttributes_Handler, }, { MethodName: "CreateAttribute", Handler: _AttributesAPI_CreateAttribute_Handler, }, { MethodName: "UpdateAttribute", Handler: _AttributesAPI_UpdateAttribute_Handler, }, { MethodName: "DeleteAttribute", Handler: _AttributesAPI_DeleteAttribute_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/articles/v1/hfcms-attributes.proto", }
AttributesAPI_ServiceDesc is the grpc.ServiceDesc for AttributesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CategoriesAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hfcms.articles.v1.CategoriesAPI", HandlerType: (*CategoriesAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCategories", Handler: _CategoriesAPI_ListCategories_Handler, }, { MethodName: "GetCategory", Handler: _CategoriesAPI_GetCategory_Handler, }, { MethodName: "CreateCategory", Handler: _CategoriesAPI_CreateCategory_Handler, }, { MethodName: "UpdateCategory", Handler: _CategoriesAPI_UpdateCategory_Handler, }, { MethodName: "DeleteCategory", Handler: _CategoriesAPI_DeleteCategory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/articles/v1/hfcms-categories.proto", }
CategoriesAPI_ServiceDesc is the grpc.ServiceDesc for CategoriesAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_articles_v1_hfcms_articles_proto protoreflect.FileDescriptor
var File_api_articles_v1_hfcms_attributes_proto protoreflect.FileDescriptor
var File_api_articles_v1_hfcms_categories_proto protoreflect.FileDescriptor
var TagsAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hfcms.articles.v1.TagsAPI", HandlerType: (*TagsAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTags", Handler: _TagsAPI_ListTags_Handler, }, { MethodName: "GetTag", Handler: _TagsAPI_GetTag_Handler, }, { MethodName: "CreateTag", Handler: _TagsAPI_CreateTag_Handler, }, { MethodName: "UpdateTag", Handler: _TagsAPI_UpdateTag_Handler, }, { MethodName: "DeleteTag", Handler: _TagsAPI_DeleteTag_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/articles/v1/hfcms-tags.proto", }
TagsAPI_ServiceDesc is the grpc.ServiceDesc for TagsAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterArticlesAPIHandler ¶
func RegisterArticlesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterArticlesAPIHandler registers the http handlers for service ArticlesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterArticlesAPIHandlerClient ¶
func RegisterArticlesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArticlesAPIClient) error
RegisterArticlesAPIHandlerClient registers the http handlers for service ArticlesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArticlesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArticlesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ArticlesAPIClient" to call the correct interceptors.
func RegisterArticlesAPIHandlerFromEndpoint ¶
func RegisterArticlesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterArticlesAPIHandlerFromEndpoint is same as RegisterArticlesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterArticlesAPIHandlerServer ¶
func RegisterArticlesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArticlesAPIServer) error
RegisterArticlesAPIHandlerServer registers the http handlers for service ArticlesAPI to "mux". UnaryRPC :call ArticlesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArticlesAPIHandlerFromEndpoint instead.
func RegisterArticlesAPIServer ¶
func RegisterArticlesAPIServer(s grpc.ServiceRegistrar, srv ArticlesAPIServer)
func RegisterAttributesAPIHandler ¶
func RegisterAttributesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAttributesAPIHandler registers the http handlers for service AttributesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAttributesAPIHandlerClient ¶
func RegisterAttributesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttributesAPIClient) error
RegisterAttributesAPIHandlerClient registers the http handlers for service AttributesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AttributesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AttributesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AttributesAPIClient" to call the correct interceptors.
func RegisterAttributesAPIHandlerFromEndpoint ¶
func RegisterAttributesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAttributesAPIHandlerFromEndpoint is same as RegisterAttributesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAttributesAPIHandlerServer ¶
func RegisterAttributesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttributesAPIServer) error
RegisterAttributesAPIHandlerServer registers the http handlers for service AttributesAPI to "mux". UnaryRPC :call AttributesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAttributesAPIHandlerFromEndpoint instead.
func RegisterAttributesAPIServer ¶
func RegisterAttributesAPIServer(s grpc.ServiceRegistrar, srv AttributesAPIServer)
func RegisterCategoriesAPIHandler ¶
func RegisterCategoriesAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCategoriesAPIHandler registers the http handlers for service CategoriesAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCategoriesAPIHandlerClient ¶
func RegisterCategoriesAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CategoriesAPIClient) error
RegisterCategoriesAPIHandlerClient registers the http handlers for service CategoriesAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CategoriesAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CategoriesAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CategoriesAPIClient" to call the correct interceptors.
func RegisterCategoriesAPIHandlerFromEndpoint ¶
func RegisterCategoriesAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCategoriesAPIHandlerFromEndpoint is same as RegisterCategoriesAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCategoriesAPIHandlerServer ¶
func RegisterCategoriesAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CategoriesAPIServer) error
RegisterCategoriesAPIHandlerServer registers the http handlers for service CategoriesAPI to "mux". UnaryRPC :call CategoriesAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCategoriesAPIHandlerFromEndpoint instead.
func RegisterCategoriesAPIServer ¶
func RegisterCategoriesAPIServer(s grpc.ServiceRegistrar, srv CategoriesAPIServer)
func RegisterTagsAPIHandler ¶
func RegisterTagsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTagsAPIHandler registers the http handlers for service TagsAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTagsAPIHandlerClient ¶
func RegisterTagsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TagsAPIClient) error
RegisterTagsAPIHandlerClient registers the http handlers for service TagsAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TagsAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TagsAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TagsAPIClient" to call the correct interceptors.
func RegisterTagsAPIHandlerFromEndpoint ¶
func RegisterTagsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTagsAPIHandlerFromEndpoint is same as RegisterTagsAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTagsAPIHandlerServer ¶
func RegisterTagsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TagsAPIServer) error
RegisterTagsAPIHandlerServer registers the http handlers for service TagsAPI to "mux". UnaryRPC :call TagsAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTagsAPIHandlerFromEndpoint instead.
func RegisterTagsAPIServer ¶
func RegisterTagsAPIServer(s grpc.ServiceRegistrar, srv TagsAPIServer)
Types ¶
type Article ¶
type Article struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ArticleId string `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` CategoryId int32 `protobuf:"varint,6,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` UserId int32 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Category *Category `protobuf:"bytes,8,opt,name=category,proto3" json:"category,omitempty"` Tags []*Tag `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` Attributes []*Attribute `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetArticleId ¶
func (*Article) GetAttributes ¶
func (*Article) GetCategory ¶
func (*Article) GetCategoryId ¶
func (*Article) GetContent ¶
func (*Article) GetUpdateTime ¶
func (x *Article) GetUpdateTime() *timestamppb.Timestamp
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type ArticlesAPIClient ¶
type ArticlesAPIClient interface { ListArticles(ctx context.Context, in *ListArticlesRequest, opts ...grpc.CallOption) (*ListArticlesResponse, error) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*Article, error) SearchArticles(ctx context.Context, in *SearchArticlesRequest, opts ...grpc.CallOption) (*SearchArticlesResponse, error) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*Article, error) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*Article, error) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ArticlesAPIClient is the client API for ArticlesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewArticlesAPIClient ¶
func NewArticlesAPIClient(cc grpc.ClientConnInterface) ArticlesAPIClient
type ArticlesAPIServer ¶
type ArticlesAPIServer interface { ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error) GetArticle(context.Context, *GetArticleRequest) (*Article, error) SearchArticles(context.Context, *SearchArticlesRequest) (*SearchArticlesResponse, error) CreateArticle(context.Context, *CreateArticleRequest) (*Article, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*Article, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ArticlesAPIServer is the server API for ArticlesAPI service. All implementations must embed UnimplementedArticlesAPIServer for forward compatibility
type Attribute ¶
type Attribute struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` AttributeId int32 `protobuf:"varint,2,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` UserId int32 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ArticleId string `protobuf:"bytes,6,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Attribute) Descriptor
deprecated
func (*Attribute) GetArticleId ¶
func (*Attribute) GetAttributeId ¶
func (*Attribute) GetDescription ¶
func (*Attribute) GetUpdateTime ¶
func (x *Attribute) GetUpdateTime() *timestamppb.Timestamp
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type AttributesAPIClient ¶
type AttributesAPIClient interface { ListAttributes(ctx context.Context, in *ListAttributesRequest, opts ...grpc.CallOption) (*ListAttributesResponse, error) GetAttribute(ctx context.Context, in *GetAttributeRequest, opts ...grpc.CallOption) (*Attribute, error) SearchAttributes(ctx context.Context, in *SearchAttributesRequest, opts ...grpc.CallOption) (*SearchAttributesResponse, error) CreateAttribute(ctx context.Context, in *CreateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error) UpdateAttribute(ctx context.Context, in *UpdateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error) DeleteAttribute(ctx context.Context, in *DeleteAttributeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AttributesAPIClient is the client API for AttributesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAttributesAPIClient ¶
func NewAttributesAPIClient(cc grpc.ClientConnInterface) AttributesAPIClient
type AttributesAPIServer ¶
type AttributesAPIServer interface { ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error) GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error) SearchAttributes(context.Context, *SearchAttributesRequest) (*SearchAttributesResponse, error) CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error) UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AttributesAPIServer is the server API for AttributesAPI service. All implementations must embed UnimplementedAttributesAPIServer for forward compatibility
type CategoriesAPIClient ¶
type CategoriesAPIClient interface { ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error) GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*Category, error) CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*Category, error) UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*Category, error) DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
CategoriesAPIClient is the client API for CategoriesAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCategoriesAPIClient ¶
func NewCategoriesAPIClient(cc grpc.ClientConnInterface) CategoriesAPIClient
type CategoriesAPIServer ¶
type CategoriesAPIServer interface { ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error) GetCategory(context.Context, *GetCategoryRequest) (*Category, error) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
CategoriesAPIServer is the server API for CategoriesAPI service. All implementations must embed UnimplementedCategoriesAPIServer for forward compatibility
type Category ¶
type Category struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CategoryId int32 `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` CategoryName string `protobuf:"bytes,3,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` CategoryCode string `protobuf:"bytes,4,opt,name=category_code,json=categoryCode,proto3" json:"category_code,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCategoryCode ¶
func (*Category) GetCategoryId ¶
func (*Category) GetCategoryName ¶
func (*Category) GetUpdateTime ¶
func (x *Category) GetUpdateTime() *timestamppb.Timestamp
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CreateArticleRequest ¶
type CreateArticleRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` ArticleId string `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` Article *Article `protobuf:"bytes,3,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleRequest) Descriptor
deprecated
func (*CreateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.
func (*CreateArticleRequest) GetArticle ¶
func (x *CreateArticleRequest) GetArticle() *Article
func (*CreateArticleRequest) GetArticleId ¶
func (x *CreateArticleRequest) GetArticleId() string
func (*CreateArticleRequest) GetParent ¶
func (x *CreateArticleRequest) GetParent() string
func (*CreateArticleRequest) ProtoMessage ¶
func (*CreateArticleRequest) ProtoMessage()
func (*CreateArticleRequest) ProtoReflect ¶
func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
func (*CreateArticleRequest) Reset ¶
func (x *CreateArticleRequest) Reset()
func (*CreateArticleRequest) String ¶
func (x *CreateArticleRequest) String() string
type CreateAttributeRequest ¶
type CreateAttributeRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Attribute *Attribute `protobuf:"bytes,2,opt,name=attribute,proto3" json:"attribute,omitempty"` // contains filtered or unexported fields }
func (*CreateAttributeRequest) Descriptor
deprecated
func (*CreateAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAttributeRequest.ProtoReflect.Descriptor instead.
func (*CreateAttributeRequest) GetAttribute ¶
func (x *CreateAttributeRequest) GetAttribute() *Attribute
func (*CreateAttributeRequest) GetName ¶
func (x *CreateAttributeRequest) GetName() string
func (*CreateAttributeRequest) ProtoMessage ¶
func (*CreateAttributeRequest) ProtoMessage()
func (*CreateAttributeRequest) ProtoReflect ¶
func (x *CreateAttributeRequest) ProtoReflect() protoreflect.Message
func (*CreateAttributeRequest) Reset ¶
func (x *CreateAttributeRequest) Reset()
func (*CreateAttributeRequest) String ¶
func (x *CreateAttributeRequest) String() string
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Category *Category `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetCategory ¶
func (x *CreateCategoryRequest) GetCategory() *Category
func (*CreateCategoryRequest) GetName ¶
func (x *CreateCategoryRequest) GetName() string
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) ProtoReflect ¶
func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateCategoryRequest) Reset ¶
func (x *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (x *CreateCategoryRequest) String() string
type CreateTagRequest ¶
type CreateTagRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Tag *Tag `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*CreateTagRequest) Descriptor
deprecated
func (*CreateTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTagRequest.ProtoReflect.Descriptor instead.
func (*CreateTagRequest) GetName ¶
func (x *CreateTagRequest) GetName() string
func (*CreateTagRequest) GetTag ¶
func (x *CreateTagRequest) GetTag() *Tag
func (*CreateTagRequest) ProtoMessage ¶
func (*CreateTagRequest) ProtoMessage()
func (*CreateTagRequest) ProtoReflect ¶
func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
func (*CreateTagRequest) Reset ¶
func (x *CreateTagRequest) Reset()
func (*CreateTagRequest) String ¶
func (x *CreateTagRequest) String() string
type DeleteArticleRequest ¶
type DeleteArticleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleRequest) Descriptor
deprecated
func (*DeleteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleRequest) GetName ¶
func (x *DeleteArticleRequest) GetName() string
func (*DeleteArticleRequest) ProtoMessage ¶
func (*DeleteArticleRequest) ProtoMessage()
func (*DeleteArticleRequest) ProtoReflect ¶
func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
func (*DeleteArticleRequest) Reset ¶
func (x *DeleteArticleRequest) Reset()
func (*DeleteArticleRequest) String ¶
func (x *DeleteArticleRequest) String() string
type DeleteAttributeRequest ¶
type DeleteAttributeRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteAttributeRequest) Descriptor
deprecated
func (*DeleteAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAttributeRequest.ProtoReflect.Descriptor instead.
func (*DeleteAttributeRequest) GetName ¶
func (x *DeleteAttributeRequest) GetName() string
func (*DeleteAttributeRequest) ProtoMessage ¶
func (*DeleteAttributeRequest) ProtoMessage()
func (*DeleteAttributeRequest) ProtoReflect ¶
func (x *DeleteAttributeRequest) ProtoReflect() protoreflect.Message
func (*DeleteAttributeRequest) Reset ¶
func (x *DeleteAttributeRequest) Reset()
func (*DeleteAttributeRequest) String ¶
func (x *DeleteAttributeRequest) String() string
type DeleteCategoryRequest ¶
type DeleteCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteCategoryRequest) Descriptor
deprecated
func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteCategoryRequest) GetName ¶
func (x *DeleteCategoryRequest) GetName() string
func (*DeleteCategoryRequest) ProtoMessage ¶
func (*DeleteCategoryRequest) ProtoMessage()
func (*DeleteCategoryRequest) ProtoReflect ¶
func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteCategoryRequest) Reset ¶
func (x *DeleteCategoryRequest) Reset()
func (*DeleteCategoryRequest) String ¶
func (x *DeleteCategoryRequest) String() string
type DeleteTagRequest ¶
type DeleteTagRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteTagRequest) Descriptor
deprecated
func (*DeleteTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTagRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagRequest) GetName ¶
func (x *DeleteTagRequest) GetName() string
func (*DeleteTagRequest) ProtoMessage ¶
func (*DeleteTagRequest) ProtoMessage()
func (*DeleteTagRequest) ProtoReflect ¶
func (x *DeleteTagRequest) ProtoReflect() protoreflect.Message
func (*DeleteTagRequest) Reset ¶
func (x *DeleteTagRequest) Reset()
func (*DeleteTagRequest) String ¶
func (x *DeleteTagRequest) String() string
type GetArticleRequest ¶
type GetArticleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetArticleRequest) Descriptor
deprecated
func (*GetArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleRequest.ProtoReflect.Descriptor instead.
func (*GetArticleRequest) GetName ¶
func (x *GetArticleRequest) GetName() string
func (*GetArticleRequest) ProtoMessage ¶
func (*GetArticleRequest) ProtoMessage()
func (*GetArticleRequest) ProtoReflect ¶
func (x *GetArticleRequest) ProtoReflect() protoreflect.Message
func (*GetArticleRequest) Reset ¶
func (x *GetArticleRequest) Reset()
func (*GetArticleRequest) String ¶
func (x *GetArticleRequest) String() string
type GetAttributeRequest ¶
type GetAttributeRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetAttributeRequest) Descriptor
deprecated
func (*GetAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttributeRequest.ProtoReflect.Descriptor instead.
func (*GetAttributeRequest) GetName ¶
func (x *GetAttributeRequest) GetName() string
func (*GetAttributeRequest) ProtoMessage ¶
func (*GetAttributeRequest) ProtoMessage()
func (*GetAttributeRequest) ProtoReflect ¶
func (x *GetAttributeRequest) ProtoReflect() protoreflect.Message
func (*GetAttributeRequest) Reset ¶
func (x *GetAttributeRequest) Reset()
func (*GetAttributeRequest) String ¶
func (x *GetAttributeRequest) String() string
type GetCategoryRequest ¶
type GetCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryRequest) Descriptor
deprecated
func (*GetCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.
func (*GetCategoryRequest) GetName ¶
func (x *GetCategoryRequest) GetName() string
func (*GetCategoryRequest) ProtoMessage ¶
func (*GetCategoryRequest) ProtoMessage()
func (*GetCategoryRequest) ProtoReflect ¶
func (x *GetCategoryRequest) ProtoReflect() protoreflect.Message
func (*GetCategoryRequest) Reset ¶
func (x *GetCategoryRequest) Reset()
func (*GetCategoryRequest) String ¶
func (x *GetCategoryRequest) String() string
type GetTagRequest ¶
type GetTagRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetTagRequest) Descriptor
deprecated
func (*GetTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTagRequest.ProtoReflect.Descriptor instead.
func (*GetTagRequest) GetName ¶
func (x *GetTagRequest) GetName() string
func (*GetTagRequest) ProtoMessage ¶
func (*GetTagRequest) ProtoMessage()
func (*GetTagRequest) ProtoReflect ¶
func (x *GetTagRequest) ProtoReflect() protoreflect.Message
func (*GetTagRequest) Reset ¶
func (x *GetTagRequest) Reset()
func (*GetTagRequest) String ¶
func (x *GetTagRequest) String() string
type ListArticlesRequest ¶
type ListArticlesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListArticlesRequest) Descriptor
deprecated
func (*ListArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListArticlesRequest.ProtoReflect.Descriptor instead.
func (*ListArticlesRequest) GetPageSize ¶
func (x *ListArticlesRequest) GetPageSize() int32
func (*ListArticlesRequest) GetPageToken ¶
func (x *ListArticlesRequest) GetPageToken() string
func (*ListArticlesRequest) GetParent ¶
func (x *ListArticlesRequest) GetParent() string
func (*ListArticlesRequest) ProtoMessage ¶
func (*ListArticlesRequest) ProtoMessage()
func (*ListArticlesRequest) ProtoReflect ¶
func (x *ListArticlesRequest) ProtoReflect() protoreflect.Message
func (*ListArticlesRequest) Reset ¶
func (x *ListArticlesRequest) Reset()
func (*ListArticlesRequest) String ¶
func (x *ListArticlesRequest) String() string
type ListArticlesResponse ¶
type ListArticlesResponse struct { Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListArticlesResponse) Descriptor
deprecated
func (*ListArticlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListArticlesResponse.ProtoReflect.Descriptor instead.
func (*ListArticlesResponse) GetArticles ¶
func (x *ListArticlesResponse) GetArticles() []*Article
func (*ListArticlesResponse) GetNextPageToken ¶
func (x *ListArticlesResponse) GetNextPageToken() string
func (*ListArticlesResponse) ProtoMessage ¶
func (*ListArticlesResponse) ProtoMessage()
func (*ListArticlesResponse) ProtoReflect ¶
func (x *ListArticlesResponse) ProtoReflect() protoreflect.Message
func (*ListArticlesResponse) Reset ¶
func (x *ListArticlesResponse) Reset()
func (*ListArticlesResponse) String ¶
func (x *ListArticlesResponse) String() string
type ListAttributesRequest ¶
type ListAttributesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListAttributesRequest) Descriptor
deprecated
func (*ListAttributesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAttributesRequest.ProtoReflect.Descriptor instead.
func (*ListAttributesRequest) GetPageSize ¶
func (x *ListAttributesRequest) GetPageSize() int32
func (*ListAttributesRequest) GetPageToken ¶
func (x *ListAttributesRequest) GetPageToken() string
func (*ListAttributesRequest) GetParent ¶
func (x *ListAttributesRequest) GetParent() string
func (*ListAttributesRequest) ProtoMessage ¶
func (*ListAttributesRequest) ProtoMessage()
func (*ListAttributesRequest) ProtoReflect ¶
func (x *ListAttributesRequest) ProtoReflect() protoreflect.Message
func (*ListAttributesRequest) Reset ¶
func (x *ListAttributesRequest) Reset()
func (*ListAttributesRequest) String ¶
func (x *ListAttributesRequest) String() string
type ListAttributesResponse ¶
type ListAttributesResponse struct { Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListAttributesResponse) Descriptor
deprecated
func (*ListAttributesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAttributesResponse.ProtoReflect.Descriptor instead.
func (*ListAttributesResponse) GetAttributes ¶
func (x *ListAttributesResponse) GetAttributes() []*Attribute
func (*ListAttributesResponse) GetNextPageToken ¶
func (x *ListAttributesResponse) GetNextPageToken() string
func (*ListAttributesResponse) ProtoMessage ¶
func (*ListAttributesResponse) ProtoMessage()
func (*ListAttributesResponse) ProtoReflect ¶
func (x *ListAttributesResponse) ProtoReflect() protoreflect.Message
func (*ListAttributesResponse) Reset ¶
func (x *ListAttributesResponse) Reset()
func (*ListAttributesResponse) String ¶
func (x *ListAttributesResponse) String() string
type ListCategoriesRequest ¶
type ListCategoriesRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListCategoriesRequest) Descriptor
deprecated
func (*ListCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.
func (*ListCategoriesRequest) GetPageSize ¶
func (x *ListCategoriesRequest) GetPageSize() int32
func (*ListCategoriesRequest) GetPageToken ¶
func (x *ListCategoriesRequest) GetPageToken() string
func (*ListCategoriesRequest) GetParent ¶
func (x *ListCategoriesRequest) GetParent() string
func (*ListCategoriesRequest) ProtoMessage ¶
func (*ListCategoriesRequest) ProtoMessage()
func (*ListCategoriesRequest) ProtoReflect ¶
func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
func (*ListCategoriesRequest) Reset ¶
func (x *ListCategoriesRequest) Reset()
func (*ListCategoriesRequest) String ¶
func (x *ListCategoriesRequest) String() string
type ListCategoriesResponse ¶
type ListCategoriesResponse struct { Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListCategoriesResponse) Descriptor
deprecated
func (*ListCategoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.
func (*ListCategoriesResponse) GetCategories ¶
func (x *ListCategoriesResponse) GetCategories() []*Category
func (*ListCategoriesResponse) GetNextPageToken ¶
func (x *ListCategoriesResponse) GetNextPageToken() string
func (*ListCategoriesResponse) ProtoMessage ¶
func (*ListCategoriesResponse) ProtoMessage()
func (*ListCategoriesResponse) ProtoReflect ¶
func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
func (*ListCategoriesResponse) Reset ¶
func (x *ListCategoriesResponse) Reset()
func (*ListCategoriesResponse) String ¶
func (x *ListCategoriesResponse) String() string
type ListTagsRequest ¶
type ListTagsRequest struct { // The parent resource name Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of items to return. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTagsRequest) Descriptor
deprecated
func (*ListTagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTagsRequest.ProtoReflect.Descriptor instead.
func (*ListTagsRequest) GetPageSize ¶
func (x *ListTagsRequest) GetPageSize() int32
func (*ListTagsRequest) GetPageToken ¶
func (x *ListTagsRequest) GetPageToken() string
func (*ListTagsRequest) GetParent ¶
func (x *ListTagsRequest) GetParent() string
func (*ListTagsRequest) ProtoMessage ¶
func (*ListTagsRequest) ProtoMessage()
func (*ListTagsRequest) ProtoReflect ¶
func (x *ListTagsRequest) ProtoReflect() protoreflect.Message
func (*ListTagsRequest) Reset ¶
func (x *ListTagsRequest) Reset()
func (*ListTagsRequest) String ¶
func (x *ListTagsRequest) String() string
type ListTagsResponse ¶
type ListTagsResponse struct { Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListTagsResponse) Descriptor
deprecated
func (*ListTagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTagsResponse.ProtoReflect.Descriptor instead.
func (*ListTagsResponse) GetNextPageToken ¶
func (x *ListTagsResponse) GetNextPageToken() string
func (*ListTagsResponse) GetTags ¶
func (x *ListTagsResponse) GetTags() []*Tag
func (*ListTagsResponse) ProtoMessage ¶
func (*ListTagsResponse) ProtoMessage()
func (*ListTagsResponse) ProtoReflect ¶
func (x *ListTagsResponse) ProtoReflect() protoreflect.Message
func (*ListTagsResponse) Reset ¶
func (x *ListTagsResponse) Reset()
func (*ListTagsResponse) String ¶
func (x *ListTagsResponse) String() string
type SearchArticlesRequest ¶
type SearchArticlesRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SearchArticlesRequest) Descriptor
deprecated
func (*SearchArticlesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchArticlesRequest.ProtoReflect.Descriptor instead.
func (*SearchArticlesRequest) GetName ¶
func (x *SearchArticlesRequest) GetName() string
func (*SearchArticlesRequest) ProtoMessage ¶
func (*SearchArticlesRequest) ProtoMessage()
func (*SearchArticlesRequest) ProtoReflect ¶
func (x *SearchArticlesRequest) ProtoReflect() protoreflect.Message
func (*SearchArticlesRequest) Reset ¶
func (x *SearchArticlesRequest) Reset()
func (*SearchArticlesRequest) String ¶
func (x *SearchArticlesRequest) String() string
type SearchArticlesResponse ¶
type SearchArticlesResponse struct { Articles []*Article `protobuf:"bytes,1,rep,name=articles,proto3" json:"articles,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchArticlesResponse) Descriptor
deprecated
func (*SearchArticlesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchArticlesResponse.ProtoReflect.Descriptor instead.
func (*SearchArticlesResponse) GetArticles ¶
func (x *SearchArticlesResponse) GetArticles() []*Article
func (*SearchArticlesResponse) GetNextPageToken ¶
func (x *SearchArticlesResponse) GetNextPageToken() string
func (*SearchArticlesResponse) ProtoMessage ¶
func (*SearchArticlesResponse) ProtoMessage()
func (*SearchArticlesResponse) ProtoReflect ¶
func (x *SearchArticlesResponse) ProtoReflect() protoreflect.Message
func (*SearchArticlesResponse) Reset ¶
func (x *SearchArticlesResponse) Reset()
func (*SearchArticlesResponse) String ¶
func (x *SearchArticlesResponse) String() string
type SearchAttributesRequest ¶
type SearchAttributesRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SearchAttributesRequest) Descriptor
deprecated
func (*SearchAttributesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchAttributesRequest.ProtoReflect.Descriptor instead.
func (*SearchAttributesRequest) GetName ¶
func (x *SearchAttributesRequest) GetName() string
func (*SearchAttributesRequest) ProtoMessage ¶
func (*SearchAttributesRequest) ProtoMessage()
func (*SearchAttributesRequest) ProtoReflect ¶
func (x *SearchAttributesRequest) ProtoReflect() protoreflect.Message
func (*SearchAttributesRequest) Reset ¶
func (x *SearchAttributesRequest) Reset()
func (*SearchAttributesRequest) String ¶
func (x *SearchAttributesRequest) String() string
type SearchAttributesResponse ¶
type SearchAttributesResponse struct { Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*SearchAttributesResponse) Descriptor
deprecated
func (*SearchAttributesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchAttributesResponse.ProtoReflect.Descriptor instead.
func (*SearchAttributesResponse) GetAttributes ¶
func (x *SearchAttributesResponse) GetAttributes() []*Attribute
func (*SearchAttributesResponse) GetNextPageToken ¶
func (x *SearchAttributesResponse) GetNextPageToken() string
func (*SearchAttributesResponse) ProtoMessage ¶
func (*SearchAttributesResponse) ProtoMessage()
func (*SearchAttributesResponse) ProtoReflect ¶
func (x *SearchAttributesResponse) ProtoReflect() protoreflect.Message
func (*SearchAttributesResponse) Reset ¶
func (x *SearchAttributesResponse) Reset()
func (*SearchAttributesResponse) String ¶
func (x *SearchAttributesResponse) String() string
type Tag ¶
type Tag struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` TagId int32 `protobuf:"varint,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"` TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) GetTagName ¶
func (*Tag) GetUpdateTime ¶
func (x *Tag) GetUpdateTime() *timestamppb.Timestamp
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type TagsAPIClient ¶
type TagsAPIClient interface { ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error) GetTag(ctx context.Context, in *GetTagRequest, opts ...grpc.CallOption) (*Tag, error) CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*Tag, error) UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*Tag, error) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
TagsAPIClient is the client API for TagsAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTagsAPIClient ¶
func NewTagsAPIClient(cc grpc.ClientConnInterface) TagsAPIClient
type TagsAPIServer ¶
type TagsAPIServer interface { ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error) GetTag(context.Context, *GetTagRequest) (*Tag, error) CreateTag(context.Context, *CreateTagRequest) (*Tag, error) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
TagsAPIServer is the server API for TagsAPI service. All implementations must embed UnimplementedTagsAPIServer for forward compatibility
type UnimplementedArticlesAPIServer ¶
type UnimplementedArticlesAPIServer struct { }
UnimplementedArticlesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedArticlesAPIServer) CreateArticle ¶
func (UnimplementedArticlesAPIServer) CreateArticle(context.Context, *CreateArticleRequest) (*Article, error)
func (UnimplementedArticlesAPIServer) DeleteArticle ¶
func (UnimplementedArticlesAPIServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*emptypb.Empty, error)
func (UnimplementedArticlesAPIServer) GetArticle ¶
func (UnimplementedArticlesAPIServer) GetArticle(context.Context, *GetArticleRequest) (*Article, error)
func (UnimplementedArticlesAPIServer) ListArticles ¶
func (UnimplementedArticlesAPIServer) ListArticles(context.Context, *ListArticlesRequest) (*ListArticlesResponse, error)
func (UnimplementedArticlesAPIServer) SearchArticles ¶
func (UnimplementedArticlesAPIServer) SearchArticles(context.Context, *SearchArticlesRequest) (*SearchArticlesResponse, error)
func (UnimplementedArticlesAPIServer) UpdateArticle ¶
func (UnimplementedArticlesAPIServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*Article, error)
type UnimplementedAttributesAPIServer ¶
type UnimplementedAttributesAPIServer struct { }
UnimplementedAttributesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAttributesAPIServer) CreateAttribute ¶
func (UnimplementedAttributesAPIServer) CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error)
func (UnimplementedAttributesAPIServer) DeleteAttribute ¶
func (UnimplementedAttributesAPIServer) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error)
func (UnimplementedAttributesAPIServer) GetAttribute ¶
func (UnimplementedAttributesAPIServer) GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error)
func (UnimplementedAttributesAPIServer) ListAttributes ¶
func (UnimplementedAttributesAPIServer) ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error)
func (UnimplementedAttributesAPIServer) SearchAttributes ¶
func (UnimplementedAttributesAPIServer) SearchAttributes(context.Context, *SearchAttributesRequest) (*SearchAttributesResponse, error)
func (UnimplementedAttributesAPIServer) UpdateAttribute ¶
func (UnimplementedAttributesAPIServer) UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error)
type UnimplementedCategoriesAPIServer ¶
type UnimplementedCategoriesAPIServer struct { }
UnimplementedCategoriesAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedCategoriesAPIServer) CreateCategory ¶
func (UnimplementedCategoriesAPIServer) CreateCategory(context.Context, *CreateCategoryRequest) (*Category, error)
func (UnimplementedCategoriesAPIServer) DeleteCategory ¶
func (UnimplementedCategoriesAPIServer) DeleteCategory(context.Context, *DeleteCategoryRequest) (*emptypb.Empty, error)
func (UnimplementedCategoriesAPIServer) GetCategory ¶
func (UnimplementedCategoriesAPIServer) GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
func (UnimplementedCategoriesAPIServer) ListCategories ¶
func (UnimplementedCategoriesAPIServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
func (UnimplementedCategoriesAPIServer) UpdateCategory ¶
func (UnimplementedCategoriesAPIServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*Category, error)
type UnimplementedTagsAPIServer ¶
type UnimplementedTagsAPIServer struct { }
UnimplementedTagsAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedTagsAPIServer) CreateTag ¶
func (UnimplementedTagsAPIServer) CreateTag(context.Context, *CreateTagRequest) (*Tag, error)
func (UnimplementedTagsAPIServer) DeleteTag ¶
func (UnimplementedTagsAPIServer) DeleteTag(context.Context, *DeleteTagRequest) (*emptypb.Empty, error)
func (UnimplementedTagsAPIServer) GetTag ¶
func (UnimplementedTagsAPIServer) GetTag(context.Context, *GetTagRequest) (*Tag, error)
func (UnimplementedTagsAPIServer) ListTags ¶
func (UnimplementedTagsAPIServer) ListTags(context.Context, *ListTagsRequest) (*ListTagsResponse, error)
func (UnimplementedTagsAPIServer) UpdateTag ¶
func (UnimplementedTagsAPIServer) UpdateTag(context.Context, *UpdateTagRequest) (*Tag, error)
type UnsafeArticlesAPIServer ¶
type UnsafeArticlesAPIServer interface {
// contains filtered or unexported methods
}
UnsafeArticlesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArticlesAPIServer will result in compilation errors.
type UnsafeAttributesAPIServer ¶
type UnsafeAttributesAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAttributesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AttributesAPIServer will result in compilation errors.
type UnsafeCategoriesAPIServer ¶
type UnsafeCategoriesAPIServer interface {
// contains filtered or unexported methods
}
UnsafeCategoriesAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CategoriesAPIServer will result in compilation errors.
type UnsafeTagsAPIServer ¶
type UnsafeTagsAPIServer interface {
// contains filtered or unexported methods
}
UnsafeTagsAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagsAPIServer will result in compilation errors.
type UpdateArticleRequest ¶
type UpdateArticleRequest struct { Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateArticleRequest) Descriptor
deprecated
func (*UpdateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest) GetArticle ¶
func (x *UpdateArticleRequest) GetArticle() *Article
func (*UpdateArticleRequest) GetUpdateMask ¶
func (x *UpdateArticleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateArticleRequest) ProtoMessage ¶
func (*UpdateArticleRequest) ProtoMessage()
func (*UpdateArticleRequest) ProtoReflect ¶
func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
func (*UpdateArticleRequest) Reset ¶
func (x *UpdateArticleRequest) Reset()
func (*UpdateArticleRequest) String ¶
func (x *UpdateArticleRequest) String() string
type UpdateAttributeRequest ¶
type UpdateAttributeRequest struct { Attribute *Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"` // contains filtered or unexported fields }
func (*UpdateAttributeRequest) Descriptor
deprecated
func (*UpdateAttributeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAttributeRequest.ProtoReflect.Descriptor instead.
func (*UpdateAttributeRequest) GetAttribute ¶
func (x *UpdateAttributeRequest) GetAttribute() *Attribute
func (*UpdateAttributeRequest) ProtoMessage ¶
func (*UpdateAttributeRequest) ProtoMessage()
func (*UpdateAttributeRequest) ProtoReflect ¶
func (x *UpdateAttributeRequest) ProtoReflect() protoreflect.Message
func (*UpdateAttributeRequest) Reset ¶
func (x *UpdateAttributeRequest) Reset()
func (*UpdateAttributeRequest) String ¶
func (x *UpdateAttributeRequest) String() string
type UpdateCategoryRequest ¶
type UpdateCategoryRequest struct { Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*UpdateCategoryRequest) Descriptor
deprecated
func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateCategoryRequest) GetCategory ¶
func (x *UpdateCategoryRequest) GetCategory() *Category
func (*UpdateCategoryRequest) ProtoMessage ¶
func (*UpdateCategoryRequest) ProtoMessage()
func (*UpdateCategoryRequest) ProtoReflect ¶
func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
func (*UpdateCategoryRequest) Reset ¶
func (x *UpdateCategoryRequest) Reset()
func (*UpdateCategoryRequest) String ¶
func (x *UpdateCategoryRequest) String() string
type UpdateTagRequest ¶
type UpdateTagRequest struct { Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*UpdateTagRequest) Descriptor
deprecated
func (*UpdateTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTagRequest.ProtoReflect.Descriptor instead.
func (*UpdateTagRequest) GetTag ¶
func (x *UpdateTagRequest) GetTag() *Tag
func (*UpdateTagRequest) ProtoMessage ¶
func (*UpdateTagRequest) ProtoMessage()
func (*UpdateTagRequest) ProtoReflect ¶
func (x *UpdateTagRequest) ProtoReflect() protoreflect.Message
func (*UpdateTagRequest) Reset ¶
func (x *UpdateTagRequest) Reset()
func (*UpdateTagRequest) String ¶
func (x *UpdateTagRequest) String() string