Versions in this module Expand all Collapse all v1 v1.0.0 Dec 28, 2022 Changes in this version + const OperationBlogServiceCreateArticle + const OperationBlogServiceGetArticles + var File_example_proto protoreflect.FileDescriptor + func RegisterBlogServiceHTTPServer(r gin.IRouter, srv BlogServiceHTTPServer) + type Article struct + AuthorId int32 + Content string + Title string + func (*Article) Descriptor() ([]byte, []int) + func (*Article) ProtoMessage() + func (m *Article) Validate() error + func (m *Article) ValidateAll() error + func (x *Article) GetAuthorId() int32 + func (x *Article) GetContent() string + func (x *Article) GetTitle() string + func (x *Article) ProtoReflect() protoreflect.Message + func (x *Article) Reset() + func (x *Article) String() string + type ArticleMultiError []error + func (m ArticleMultiError) AllErrors() []error + func (m ArticleMultiError) Error() string + type ArticleValidationError struct + func (e ArticleValidationError) Cause() error + func (e ArticleValidationError) Error() string + func (e ArticleValidationError) ErrorName() string + func (e ArticleValidationError) Field() string + func (e ArticleValidationError) Key() bool + func (e ArticleValidationError) Reason() string + type BlogServiceHTTPClient interface + CreateArticle func(ctx context.Context, req *Article, opts ...http.CallOption) (rsp *Article, err error) + GetArticles func(ctx context.Context, req *GetArticlesReq, opts ...http.CallOption) (rsp *GetArticlesResp, err error) + func NewBlogServiceHTTPClient(client *http.Client) BlogServiceHTTPClient + type BlogServiceHTTPClientImpl struct + func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *Article, opts ...http.CallOption) (*Article, error) + func (c *BlogServiceHTTPClientImpl) GetArticles(ctx context.Context, in *GetArticlesReq, opts ...http.CallOption) (*GetArticlesResp, error) + type BlogServiceHTTPServer interface + CreateArticle func(context.Context, *Article) (*Article, error) + GetArticles func(context.Context, *GetArticlesReq) (*GetArticlesResp, error) + type GetArticlesReq struct + AuthorId int32 + Page int32 + PageSize int32 + Title string + func (*GetArticlesReq) Descriptor() ([]byte, []int) + func (*GetArticlesReq) ProtoMessage() + func (m *GetArticlesReq) Validate() error + func (m *GetArticlesReq) ValidateAll() error + func (x *GetArticlesReq) GetAuthorId() int32 + func (x *GetArticlesReq) GetPage() int32 + func (x *GetArticlesReq) GetPageSize() int32 + func (x *GetArticlesReq) GetTitle() string + func (x *GetArticlesReq) ProtoReflect() protoreflect.Message + func (x *GetArticlesReq) Reset() + func (x *GetArticlesReq) String() string + type GetArticlesReqMultiError []error + func (m GetArticlesReqMultiError) AllErrors() []error + func (m GetArticlesReqMultiError) Error() string + type GetArticlesReqValidationError struct + func (e GetArticlesReqValidationError) Cause() error + func (e GetArticlesReqValidationError) Error() string + func (e GetArticlesReqValidationError) ErrorName() string + func (e GetArticlesReqValidationError) Field() string + func (e GetArticlesReqValidationError) Key() bool + func (e GetArticlesReqValidationError) Reason() string + type GetArticlesResp struct + Articles []*Article + Total int64 + func (*GetArticlesResp) Descriptor() ([]byte, []int) + func (*GetArticlesResp) ProtoMessage() + func (m *GetArticlesResp) Validate() error + func (m *GetArticlesResp) ValidateAll() error + func (x *GetArticlesResp) GetArticles() []*Article + func (x *GetArticlesResp) GetTotal() int64 + func (x *GetArticlesResp) ProtoReflect() protoreflect.Message + func (x *GetArticlesResp) Reset() + func (x *GetArticlesResp) String() string + type GetArticlesRespMultiError []error + func (m GetArticlesRespMultiError) AllErrors() []error + func (m GetArticlesRespMultiError) Error() string + type GetArticlesRespValidationError struct + func (e GetArticlesRespValidationError) Cause() error + func (e GetArticlesRespValidationError) Error() string + func (e GetArticlesRespValidationError) ErrorName() string + func (e GetArticlesRespValidationError) Field() string + func (e GetArticlesRespValidationError) Key() bool + func (e GetArticlesRespValidationError) Reason() string