Documentation
¶
Index ¶
- Variables
- func ErrorArticleNotFound(format string, args ...interface{}) *errors.Error
- func ErrorContentMissing(format string, args ...interface{}) *errors.Error
- func ErrorNotFound(format string, args ...interface{}) *errors.Error
- func IsArticleNotFound(err error) bool
- func IsContentMissing(err error) bool
- func IsNotFound(err error) bool
- func RegisterBlogServiceHTTPServer(s *http.Server, srv BlogServiceHTTPServer)
- func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
- func RegisterCommentServiceHTTPServer(s *http.Server, srv CommentServiceHTTPServer)
- func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetContent() string
- func (x *Article) GetId() int64
- func (x *Article) GetLike() int64
- func (x *Article) GetTitle() string
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- func (m *Article) Validate() error
- func (m *Article) ValidateAll() error
- type ArticleMultiError
- type ArticleValidationError
- type BlogServiceClient
- type BlogServiceHTTPClient
- type BlogServiceHTTPClientImpl
- func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*CreateArticleReply, error)
- func (c *BlogServiceHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*DeleteArticleReply, error)
- func (c *BlogServiceHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*GetArticleReply, error)
- func (c *BlogServiceHTTPClientImpl) ListArticle(ctx context.Context, in *ListArticleRequest, opts ...http.CallOption) (*ListArticleReply, error)
- func (c *BlogServiceHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*UpdateArticleReply, error)
- type BlogServiceHTTPServer
- type BlogServiceServer
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetArticleId() int64
- func (x *Comment) GetContent() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetName() string
- func (x *Comment) GetUpdateAt() *timestamppb.Timestamp
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- func (m *Comment) Validate() error
- func (m *Comment) ValidateAll() error
- type CommentMultiError
- type CommentServiceClient
- type CommentServiceHTTPClient
- type CommentServiceHTTPClientImpl
- func (c *CommentServiceHTTPClientImpl) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...http.CallOption) (*CreateCommentReply, error)
- func (c *CommentServiceHTTPClientImpl) ListArticleComment(ctx context.Context, in *ListCommentReq, opts ...http.CallOption) (*ListCommentReply, error)
- type CommentServiceHTTPServer
- type CommentServiceServer
- type CommentValidationError
- type CreateArticleReply
- func (*CreateArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleReply) GetArticle() *Article
- func (*CreateArticleReply) ProtoMessage()
- func (x *CreateArticleReply) ProtoReflect() protoreflect.Message
- func (x *CreateArticleReply) Reset()
- func (x *CreateArticleReply) String() string
- func (m *CreateArticleReply) Validate() error
- func (m *CreateArticleReply) ValidateAll() error
- type CreateArticleReplyMultiError
- type CreateArticleReplyValidationError
- func (e CreateArticleReplyValidationError) Cause() error
- func (e CreateArticleReplyValidationError) Error() string
- func (e CreateArticleReplyValidationError) ErrorName() string
- func (e CreateArticleReplyValidationError) Field() string
- func (e CreateArticleReplyValidationError) Key() bool
- func (e CreateArticleReplyValidationError) Reason() string
- type CreateArticleRequest
- func (*CreateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateArticleRequest) GetContent() string
- func (x *CreateArticleRequest) GetTitle() string
- func (*CreateArticleRequest) ProtoMessage()
- func (x *CreateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateArticleRequest) Reset()
- func (x *CreateArticleRequest) String() string
- func (m *CreateArticleRequest) Validate() error
- func (m *CreateArticleRequest) ValidateAll() error
- type CreateArticleRequestMultiError
- type CreateArticleRequestValidationError
- func (e CreateArticleRequestValidationError) Cause() error
- func (e CreateArticleRequestValidationError) Error() string
- func (e CreateArticleRequestValidationError) ErrorName() string
- func (e CreateArticleRequestValidationError) Field() string
- func (e CreateArticleRequestValidationError) Key() bool
- func (e CreateArticleRequestValidationError) Reason() string
- type CreateCommentReply
- func (*CreateCommentReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentReply) GetComment() *Comment
- func (*CreateCommentReply) ProtoMessage()
- func (x *CreateCommentReply) ProtoReflect() protoreflect.Message
- func (x *CreateCommentReply) Reset()
- func (x *CreateCommentReply) String() string
- func (m *CreateCommentReply) Validate() error
- func (m *CreateCommentReply) ValidateAll() error
- type CreateCommentReplyMultiError
- type CreateCommentReplyValidationError
- func (e CreateCommentReplyValidationError) Cause() error
- func (e CreateCommentReplyValidationError) Error() string
- func (e CreateCommentReplyValidationError) ErrorName() string
- func (e CreateCommentReplyValidationError) Field() string
- func (e CreateCommentReplyValidationError) Key() bool
- func (e CreateCommentReplyValidationError) Reason() string
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentRequest) GetArticleId() int64
- func (x *CreateCommentRequest) GetContent() string
- func (x *CreateCommentRequest) GetName() string
- func (*CreateCommentRequest) ProtoMessage()
- func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCommentRequest) Reset()
- func (x *CreateCommentRequest) String() string
- func (m *CreateCommentRequest) Validate() error
- func (m *CreateCommentRequest) ValidateAll() error
- type CreateCommentRequestMultiError
- type CreateCommentRequestValidationError
- func (e CreateCommentRequestValidationError) Cause() error
- func (e CreateCommentRequestValidationError) Error() string
- func (e CreateCommentRequestValidationError) ErrorName() string
- func (e CreateCommentRequestValidationError) Field() string
- func (e CreateCommentRequestValidationError) Key() bool
- func (e CreateCommentRequestValidationError) Reason() string
- type DeleteArticleReply
- func (*DeleteArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleReply) GetMsg() string
- func (*DeleteArticleReply) ProtoMessage()
- func (x *DeleteArticleReply) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleReply) Reset()
- func (x *DeleteArticleReply) String() string
- func (m *DeleteArticleReply) Validate() error
- func (m *DeleteArticleReply) ValidateAll() error
- type DeleteArticleReplyMultiError
- type DeleteArticleReplyValidationError
- func (e DeleteArticleReplyValidationError) Cause() error
- func (e DeleteArticleReplyValidationError) Error() string
- func (e DeleteArticleReplyValidationError) ErrorName() string
- func (e DeleteArticleReplyValidationError) Field() string
- func (e DeleteArticleReplyValidationError) Key() bool
- func (e DeleteArticleReplyValidationError) Reason() string
- type DeleteArticleRequest
- func (*DeleteArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArticleRequest) GetId() int64
- func (*DeleteArticleRequest) ProtoMessage()
- func (x *DeleteArticleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteArticleRequest) Reset()
- func (x *DeleteArticleRequest) String() string
- func (m *DeleteArticleRequest) Validate() error
- func (m *DeleteArticleRequest) ValidateAll() error
- type DeleteArticleRequestMultiError
- type DeleteArticleRequestValidationError
- func (e DeleteArticleRequestValidationError) Cause() error
- func (e DeleteArticleRequestValidationError) Error() string
- func (e DeleteArticleRequestValidationError) ErrorName() string
- func (e DeleteArticleRequestValidationError) Field() string
- func (e DeleteArticleRequestValidationError) Key() bool
- func (e DeleteArticleRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetArticleReply
- func (*GetArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleReply) GetArticle() *Article
- func (*GetArticleReply) ProtoMessage()
- func (x *GetArticleReply) ProtoReflect() protoreflect.Message
- func (x *GetArticleReply) Reset()
- func (x *GetArticleReply) String() string
- func (m *GetArticleReply) Validate() error
- func (m *GetArticleReply) ValidateAll() error
- type GetArticleReplyMultiError
- type GetArticleReplyValidationError
- func (e GetArticleReplyValidationError) Cause() error
- func (e GetArticleReplyValidationError) Error() string
- func (e GetArticleReplyValidationError) ErrorName() string
- func (e GetArticleReplyValidationError) Field() string
- func (e GetArticleReplyValidationError) Key() bool
- func (e GetArticleReplyValidationError) Reason() string
- type GetArticleRequest
- func (*GetArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleRequest) GetId() int64
- func (*GetArticleRequest) ProtoMessage()
- func (x *GetArticleRequest) ProtoReflect() protoreflect.Message
- func (x *GetArticleRequest) Reset()
- func (x *GetArticleRequest) String() string
- func (m *GetArticleRequest) Validate() error
- func (m *GetArticleRequest) ValidateAll() error
- type GetArticleRequestMultiError
- type GetArticleRequestValidationError
- func (e GetArticleRequestValidationError) Cause() error
- func (e GetArticleRequestValidationError) Error() string
- func (e GetArticleRequestValidationError) ErrorName() string
- func (e GetArticleRequestValidationError) Field() string
- func (e GetArticleRequestValidationError) Key() bool
- func (e GetArticleRequestValidationError) Reason() string
- type ListArticleReply
- func (*ListArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListArticleReply) GetResults() []*Article
- func (*ListArticleReply) ProtoMessage()
- func (x *ListArticleReply) ProtoReflect() protoreflect.Message
- func (x *ListArticleReply) Reset()
- func (x *ListArticleReply) String() string
- func (m *ListArticleReply) Validate() error
- func (m *ListArticleReply) ValidateAll() error
- type ListArticleReplyMultiError
- type ListArticleReplyValidationError
- func (e ListArticleReplyValidationError) Cause() error
- func (e ListArticleReplyValidationError) Error() string
- func (e ListArticleReplyValidationError) ErrorName() string
- func (e ListArticleReplyValidationError) Field() string
- func (e ListArticleReplyValidationError) Key() bool
- func (e ListArticleReplyValidationError) Reason() string
- type ListArticleRequest
- func (*ListArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListArticleRequest) ProtoMessage()
- func (x *ListArticleRequest) ProtoReflect() protoreflect.Message
- func (x *ListArticleRequest) Reset()
- func (x *ListArticleRequest) String() string
- func (m *ListArticleRequest) Validate() error
- func (m *ListArticleRequest) ValidateAll() error
- type ListArticleRequestMultiError
- type ListArticleRequestValidationError
- func (e ListArticleRequestValidationError) Cause() error
- func (e ListArticleRequestValidationError) Error() string
- func (e ListArticleRequestValidationError) ErrorName() string
- func (e ListArticleRequestValidationError) Field() string
- func (e ListArticleRequestValidationError) Key() bool
- func (e ListArticleRequestValidationError) Reason() string
- type ListCommentReply
- func (*ListCommentReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentReply) GetComments() []*Comment
- func (*ListCommentReply) ProtoMessage()
- func (x *ListCommentReply) ProtoReflect() protoreflect.Message
- func (x *ListCommentReply) Reset()
- func (x *ListCommentReply) String() string
- func (m *ListCommentReply) Validate() error
- func (m *ListCommentReply) ValidateAll() error
- type ListCommentReplyMultiError
- type ListCommentReplyValidationError
- func (e ListCommentReplyValidationError) Cause() error
- func (e ListCommentReplyValidationError) Error() string
- func (e ListCommentReplyValidationError) ErrorName() string
- func (e ListCommentReplyValidationError) Field() string
- func (e ListCommentReplyValidationError) Key() bool
- func (e ListCommentReplyValidationError) Reason() string
- type ListCommentReq
- func (*ListCommentReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentReq) GetArticleId() int64
- func (*ListCommentReq) ProtoMessage()
- func (x *ListCommentReq) ProtoReflect() protoreflect.Message
- func (x *ListCommentReq) Reset()
- func (x *ListCommentReq) String() string
- func (m *ListCommentReq) Validate() error
- func (m *ListCommentReq) ValidateAll() error
- type ListCommentReqMultiError
- type ListCommentReqValidationError
- func (e ListCommentReqValidationError) Cause() error
- func (e ListCommentReqValidationError) Error() string
- func (e ListCommentReqValidationError) ErrorName() string
- func (e ListCommentReqValidationError) Field() string
- func (e ListCommentReqValidationError) Key() bool
- func (e ListCommentReqValidationError) Reason() string
- type UnimplementedBlogServiceServer
- func (UnimplementedBlogServiceServer) CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleReply, error)
- func (UnimplementedBlogServiceServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleReply, error)
- func (UnimplementedBlogServiceServer) GetArticle(context.Context, *GetArticleRequest) (*GetArticleReply, error)
- func (UnimplementedBlogServiceServer) ListArticle(context.Context, *ListArticleRequest) (*ListArticleReply, error)
- func (UnimplementedBlogServiceServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleReply, error)
- type UnimplementedCommentServiceServer
- type UnsafeBlogServiceServer
- type UnsafeCommentServiceServer
- type UpdateArticleReply
- func (*UpdateArticleReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleReply) GetArticle() *Article
- func (*UpdateArticleReply) ProtoMessage()
- func (x *UpdateArticleReply) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleReply) Reset()
- func (x *UpdateArticleReply) String() string
- func (m *UpdateArticleReply) Validate() error
- func (m *UpdateArticleReply) ValidateAll() error
- type UpdateArticleReplyMultiError
- type UpdateArticleReplyValidationError
- func (e UpdateArticleReplyValidationError) Cause() error
- func (e UpdateArticleReplyValidationError) Error() string
- func (e UpdateArticleReplyValidationError) ErrorName() string
- func (e UpdateArticleReplyValidationError) Field() string
- func (e UpdateArticleReplyValidationError) Key() bool
- func (e UpdateArticleReplyValidationError) Reason() string
- type UpdateArticleRequest
- func (*UpdateArticleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateArticleRequest) GetContent() string
- func (x *UpdateArticleRequest) GetId() int64
- func (x *UpdateArticleRequest) GetTitle() string
- func (*UpdateArticleRequest) ProtoMessage()
- func (x *UpdateArticleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateArticleRequest) Reset()
- func (x *UpdateArticleRequest) String() string
- func (m *UpdateArticleRequest) Validate() error
- func (m *UpdateArticleRequest) ValidateAll() error
- type UpdateArticleRequestMultiError
- type UpdateArticleRequestValidationError
- func (e UpdateArticleRequestValidationError) Cause() error
- func (e UpdateArticleRequestValidationError) Error() string
- func (e UpdateArticleRequestValidationError) ErrorName() string
- func (e UpdateArticleRequestValidationError) Field() string
- func (e UpdateArticleRequestValidationError) Key() bool
- func (e UpdateArticleRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "NOT_FOUND", 1: "CONTENT_MISSING", 2: "ARTICLE_NOT_FOUND", } ErrorReason_value = map[string]int32{ "NOT_FOUND": 0, "CONTENT_MISSING": 1, "ARTICLE_NOT_FOUND": 2, } )
Enum value maps for ErrorReason.
var BlogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.blog.v1.BlogService", HandlerType: (*BlogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateArticle", Handler: _BlogService_CreateArticle_Handler, }, { MethodName: "UpdateArticle", Handler: _BlogService_UpdateArticle_Handler, }, { MethodName: "DeleteArticle", Handler: _BlogService_DeleteArticle_Handler, }, { MethodName: "GetArticle", Handler: _BlogService_GetArticle_Handler, }, { MethodName: "ListArticle", Handler: _BlogService_ListArticle_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/blog/v1/blog.proto", }
BlogService_ServiceDesc is the grpc.ServiceDesc for BlogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CommentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.blog.v1.CommentService", HandlerType: (*CommentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateComment", Handler: _CommentService_CreateComment_Handler, }, { MethodName: "ListArticleComment", Handler: _CommentService_ListArticleComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/blog/v1/comment.proto", }
CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService 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_blog_v1_blog_proto protoreflect.FileDescriptor
var File_api_blog_v1_comment_proto protoreflect.FileDescriptor
var File_api_blog_v1_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorArticleNotFound ¶
func ErrorContentMissing ¶
func ErrorNotFound ¶
func IsArticleNotFound ¶
func IsContentMissing ¶
func IsNotFound ¶
func RegisterBlogServiceHTTPServer ¶
func RegisterBlogServiceHTTPServer(s *http.Server, srv BlogServiceHTTPServer)
func RegisterBlogServiceServer ¶
func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
func RegisterCommentServiceHTTPServer ¶
func RegisterCommentServiceHTTPServer(s *http.Server, srv CommentServiceHTTPServer)
func RegisterCommentServiceServer ¶
func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)
Types ¶
type Article ¶
type Article struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Like int64 `protobuf:"varint,4,opt,name=like,proto3" json:"like,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetContent ¶
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
func (*Article) Validate ¶
Validate checks the field values on Article with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Article) ValidateAll ¶
ValidateAll checks the field values on Article with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ArticleMultiError, or nil if none found.
type ArticleMultiError ¶
type ArticleMultiError []error
ArticleMultiError is an error wrapping multiple validation errors returned by Article.ValidateAll() if the designated constraints aren't met.
func (ArticleMultiError) AllErrors ¶
func (m ArticleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ArticleMultiError) Error ¶
func (m ArticleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ArticleValidationError ¶
type ArticleValidationError struct {
// contains filtered or unexported fields
}
ArticleValidationError is the validation error returned by Article.Validate if the designated constraints aren't met.
func (ArticleValidationError) Cause ¶
func (e ArticleValidationError) Cause() error
Cause function returns cause value.
func (ArticleValidationError) Error ¶
func (e ArticleValidationError) Error() string
Error satisfies the builtin error interface
func (ArticleValidationError) ErrorName ¶
func (e ArticleValidationError) ErrorName() string
ErrorName returns error name.
func (ArticleValidationError) Field ¶
func (e ArticleValidationError) Field() string
Field function returns field value.
func (ArticleValidationError) Key ¶
func (e ArticleValidationError) Key() bool
Key function returns key value.
func (ArticleValidationError) Reason ¶
func (e ArticleValidationError) Reason() string
Reason function returns reason value.
type BlogServiceClient ¶
type BlogServiceClient interface { CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...grpc.CallOption) (*CreateArticleReply, error) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...grpc.CallOption) (*UpdateArticleReply, error) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...grpc.CallOption) (*DeleteArticleReply, error) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...grpc.CallOption) (*GetArticleReply, error) ListArticle(ctx context.Context, in *ListArticleRequest, opts ...grpc.CallOption) (*ListArticleReply, error) }
BlogServiceClient is the client API for BlogService 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 NewBlogServiceClient ¶
func NewBlogServiceClient(cc grpc.ClientConnInterface) BlogServiceClient
type BlogServiceHTTPClient ¶
type BlogServiceHTTPClient interface { CreateArticle(ctx context.Context, req *CreateArticleRequest, opts ...http.CallOption) (rsp *CreateArticleReply, err error) DeleteArticle(ctx context.Context, req *DeleteArticleRequest, opts ...http.CallOption) (rsp *DeleteArticleReply, err error) GetArticle(ctx context.Context, req *GetArticleRequest, opts ...http.CallOption) (rsp *GetArticleReply, err error) ListArticle(ctx context.Context, req *ListArticleRequest, opts ...http.CallOption) (rsp *ListArticleReply, err error) UpdateArticle(ctx context.Context, req *UpdateArticleRequest, opts ...http.CallOption) (rsp *UpdateArticleReply, err error) }
func NewBlogServiceHTTPClient ¶
func NewBlogServiceHTTPClient(client *http.Client) BlogServiceHTTPClient
type BlogServiceHTTPClientImpl ¶
type BlogServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*BlogServiceHTTPClientImpl) CreateArticle ¶
func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*CreateArticleReply, error)
func (*BlogServiceHTTPClientImpl) DeleteArticle ¶
func (c *BlogServiceHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*DeleteArticleReply, error)
func (*BlogServiceHTTPClientImpl) GetArticle ¶
func (c *BlogServiceHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*GetArticleReply, error)
func (*BlogServiceHTTPClientImpl) ListArticle ¶
func (c *BlogServiceHTTPClientImpl) ListArticle(ctx context.Context, in *ListArticleRequest, opts ...http.CallOption) (*ListArticleReply, error)
func (*BlogServiceHTTPClientImpl) UpdateArticle ¶
func (c *BlogServiceHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*UpdateArticleReply, error)
type BlogServiceHTTPServer ¶
type BlogServiceHTTPServer interface { CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleReply, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleReply, error) GetArticle(context.Context, *GetArticleRequest) (*GetArticleReply, error) ListArticle(context.Context, *ListArticleRequest) (*ListArticleReply, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleReply, error) }
type BlogServiceServer ¶
type BlogServiceServer interface { CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleReply, error) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleReply, error) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleReply, error) GetArticle(context.Context, *GetArticleRequest) (*GetArticleReply, error) ListArticle(context.Context, *ListArticleRequest) (*ListArticleReply, error) // contains filtered or unexported methods }
BlogServiceServer is the server API for BlogService service. All implementations must embed UnimplementedBlogServiceServer for forward compatibility
type Comment ¶
type Comment struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` UpdateAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` ArticleId int64 `protobuf:"varint,5,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetArticleId ¶
func (*Comment) GetContent ¶
func (*Comment) GetUpdateAt ¶
func (x *Comment) GetUpdateAt() *timestamppb.Timestamp
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
func (*Comment) Validate ¶
Validate checks the field values on Comment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Comment) ValidateAll ¶
ValidateAll checks the field values on Comment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommentMultiError, or nil if none found.
type CommentMultiError ¶
type CommentMultiError []error
CommentMultiError is an error wrapping multiple validation errors returned by Comment.ValidateAll() if the designated constraints aren't met.
func (CommentMultiError) AllErrors ¶
func (m CommentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentMultiError) Error ¶
func (m CommentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentServiceClient ¶
type CommentServiceClient interface { CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentReply, error) ListArticleComment(ctx context.Context, in *ListCommentReq, opts ...grpc.CallOption) (*ListCommentReply, error) }
CommentServiceClient is the client API for CommentService 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 NewCommentServiceClient ¶
func NewCommentServiceClient(cc grpc.ClientConnInterface) CommentServiceClient
type CommentServiceHTTPClient ¶
type CommentServiceHTTPClient interface { CreateComment(ctx context.Context, req *CreateCommentRequest, opts ...http.CallOption) (rsp *CreateCommentReply, err error) ListArticleComment(ctx context.Context, req *ListCommentReq, opts ...http.CallOption) (rsp *ListCommentReply, err error) }
func NewCommentServiceHTTPClient ¶
func NewCommentServiceHTTPClient(client *http.Client) CommentServiceHTTPClient
type CommentServiceHTTPClientImpl ¶
type CommentServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*CommentServiceHTTPClientImpl) CreateComment ¶
func (c *CommentServiceHTTPClientImpl) CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...http.CallOption) (*CreateCommentReply, error)
func (*CommentServiceHTTPClientImpl) ListArticleComment ¶
func (c *CommentServiceHTTPClientImpl) ListArticleComment(ctx context.Context, in *ListCommentReq, opts ...http.CallOption) (*ListCommentReply, error)
type CommentServiceHTTPServer ¶
type CommentServiceHTTPServer interface { CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentReply, error) ListArticleComment(context.Context, *ListCommentReq) (*ListCommentReply, error) }
type CommentServiceServer ¶
type CommentServiceServer interface { CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentReply, error) ListArticleComment(context.Context, *ListCommentReq) (*ListCommentReply, error) // contains filtered or unexported methods }
CommentServiceServer is the server API for CommentService service. All implementations must embed UnimplementedCommentServiceServer for forward compatibility
type CommentValidationError ¶
type CommentValidationError struct {
// contains filtered or unexported fields
}
CommentValidationError is the validation error returned by Comment.Validate if the designated constraints aren't met.
func (CommentValidationError) Cause ¶
func (e CommentValidationError) Cause() error
Cause function returns cause value.
func (CommentValidationError) Error ¶
func (e CommentValidationError) Error() string
Error satisfies the builtin error interface
func (CommentValidationError) ErrorName ¶
func (e CommentValidationError) ErrorName() string
ErrorName returns error name.
func (CommentValidationError) Field ¶
func (e CommentValidationError) Field() string
Field function returns field value.
func (CommentValidationError) Key ¶
func (e CommentValidationError) Key() bool
Key function returns key value.
func (CommentValidationError) Reason ¶
func (e CommentValidationError) Reason() string
Reason function returns reason value.
type CreateArticleReply ¶
type CreateArticleReply struct { Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleReply) Descriptor
deprecated
func (*CreateArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleReply.ProtoReflect.Descriptor instead.
func (*CreateArticleReply) GetArticle ¶
func (x *CreateArticleReply) GetArticle() *Article
func (*CreateArticleReply) ProtoMessage ¶
func (*CreateArticleReply) ProtoMessage()
func (*CreateArticleReply) ProtoReflect ¶
func (x *CreateArticleReply) ProtoReflect() protoreflect.Message
func (*CreateArticleReply) Reset ¶
func (x *CreateArticleReply) Reset()
func (*CreateArticleReply) String ¶
func (x *CreateArticleReply) String() string
func (*CreateArticleReply) Validate ¶
func (m *CreateArticleReply) Validate() error
Validate checks the field values on CreateArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateArticleReply) ValidateAll ¶
func (m *CreateArticleReply) ValidateAll() error
ValidateAll checks the field values on CreateArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateArticleReplyMultiError, or nil if none found.
type CreateArticleReplyMultiError ¶
type CreateArticleReplyMultiError []error
CreateArticleReplyMultiError is an error wrapping multiple validation errors returned by CreateArticleReply.ValidateAll() if the designated constraints aren't met.
func (CreateArticleReplyMultiError) AllErrors ¶
func (m CreateArticleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateArticleReplyMultiError) Error ¶
func (m CreateArticleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateArticleReplyValidationError ¶
type CreateArticleReplyValidationError struct {
// contains filtered or unexported fields
}
CreateArticleReplyValidationError is the validation error returned by CreateArticleReply.Validate if the designated constraints aren't met.
func (CreateArticleReplyValidationError) Cause ¶
func (e CreateArticleReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateArticleReplyValidationError) Error ¶
func (e CreateArticleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateArticleReplyValidationError) ErrorName ¶
func (e CreateArticleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateArticleReplyValidationError) Field ¶
func (e CreateArticleReplyValidationError) Field() string
Field function returns field value.
func (CreateArticleReplyValidationError) Key ¶
func (e CreateArticleReplyValidationError) Key() bool
Key function returns key value.
func (CreateArticleReplyValidationError) Reason ¶
func (e CreateArticleReplyValidationError) Reason() string
Reason function returns reason value.
type CreateArticleRequest ¶
type CreateArticleRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // the title of string must be between 5 and 50 character Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*CreateArticleRequest) Descriptor
deprecated
func (*CreateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateArticleRequest.ProtoReflect.Descriptor instead.
func (*CreateArticleRequest) GetContent ¶
func (x *CreateArticleRequest) GetContent() string
func (*CreateArticleRequest) GetTitle ¶
func (x *CreateArticleRequest) GetTitle() 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
func (*CreateArticleRequest) Validate ¶
func (m *CreateArticleRequest) Validate() error
Validate checks the field values on CreateArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateArticleRequest) ValidateAll ¶
func (m *CreateArticleRequest) ValidateAll() error
ValidateAll checks the field values on CreateArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateArticleRequestMultiError, or nil if none found.
type CreateArticleRequestMultiError ¶
type CreateArticleRequestMultiError []error
CreateArticleRequestMultiError is an error wrapping multiple validation errors returned by CreateArticleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateArticleRequestMultiError) AllErrors ¶
func (m CreateArticleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateArticleRequestMultiError) Error ¶
func (m CreateArticleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateArticleRequestValidationError ¶
type CreateArticleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateArticleRequestValidationError is the validation error returned by CreateArticleRequest.Validate if the designated constraints aren't met.
func (CreateArticleRequestValidationError) Cause ¶
func (e CreateArticleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateArticleRequestValidationError) Error ¶
func (e CreateArticleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateArticleRequestValidationError) ErrorName ¶
func (e CreateArticleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateArticleRequestValidationError) Field ¶
func (e CreateArticleRequestValidationError) Field() string
Field function returns field value.
func (CreateArticleRequestValidationError) Key ¶
func (e CreateArticleRequestValidationError) Key() bool
Key function returns key value.
func (CreateArticleRequestValidationError) Reason ¶
func (e CreateArticleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateCommentReply ¶
type CreateCommentReply struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentReply) Descriptor
deprecated
func (*CreateCommentReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentReply.ProtoReflect.Descriptor instead.
func (*CreateCommentReply) GetComment ¶
func (x *CreateCommentReply) GetComment() *Comment
func (*CreateCommentReply) ProtoMessage ¶
func (*CreateCommentReply) ProtoMessage()
func (*CreateCommentReply) ProtoReflect ¶
func (x *CreateCommentReply) ProtoReflect() protoreflect.Message
func (*CreateCommentReply) Reset ¶
func (x *CreateCommentReply) Reset()
func (*CreateCommentReply) String ¶
func (x *CreateCommentReply) String() string
func (*CreateCommentReply) Validate ¶
func (m *CreateCommentReply) Validate() error
Validate checks the field values on CreateCommentReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCommentReply) ValidateAll ¶
func (m *CreateCommentReply) ValidateAll() error
ValidateAll checks the field values on CreateCommentReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCommentReplyMultiError, or nil if none found.
type CreateCommentReplyMultiError ¶
type CreateCommentReplyMultiError []error
CreateCommentReplyMultiError is an error wrapping multiple validation errors returned by CreateCommentReply.ValidateAll() if the designated constraints aren't met.
func (CreateCommentReplyMultiError) AllErrors ¶
func (m CreateCommentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCommentReplyMultiError) Error ¶
func (m CreateCommentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCommentReplyValidationError ¶
type CreateCommentReplyValidationError struct {
// contains filtered or unexported fields
}
CreateCommentReplyValidationError is the validation error returned by CreateCommentReply.Validate if the designated constraints aren't met.
func (CreateCommentReplyValidationError) Cause ¶
func (e CreateCommentReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateCommentReplyValidationError) Error ¶
func (e CreateCommentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCommentReplyValidationError) ErrorName ¶
func (e CreateCommentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCommentReplyValidationError) Field ¶
func (e CreateCommentReplyValidationError) Field() string
Field function returns field value.
func (CreateCommentReplyValidationError) Key ¶
func (e CreateCommentReplyValidationError) Key() bool
Key function returns key value.
func (CreateCommentReplyValidationError) Reason ¶
func (e CreateCommentReplyValidationError) Reason() string
Reason function returns reason value.
type CreateCommentRequest ¶
type CreateCommentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the title of string must be between 5 and 50 character Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` ArticleId int64 `protobuf:"varint,3,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentRequest) Descriptor
deprecated
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest) GetArticleId ¶
func (x *CreateCommentRequest) GetArticleId() int64
func (*CreateCommentRequest) GetContent ¶
func (x *CreateCommentRequest) GetContent() string
func (*CreateCommentRequest) GetName ¶
func (x *CreateCommentRequest) GetName() string
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) ProtoReflect ¶
func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
func (*CreateCommentRequest) Reset ¶
func (x *CreateCommentRequest) Reset()
func (*CreateCommentRequest) String ¶
func (x *CreateCommentRequest) String() string
func (*CreateCommentRequest) Validate ¶
func (m *CreateCommentRequest) Validate() error
Validate checks the field values on CreateCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCommentRequest) ValidateAll ¶
func (m *CreateCommentRequest) ValidateAll() error
ValidateAll checks the field values on CreateCommentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCommentRequestMultiError, or nil if none found.
type CreateCommentRequestMultiError ¶
type CreateCommentRequestMultiError []error
CreateCommentRequestMultiError is an error wrapping multiple validation errors returned by CreateCommentRequest.ValidateAll() if the designated constraints aren't met.
func (CreateCommentRequestMultiError) AllErrors ¶
func (m CreateCommentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCommentRequestMultiError) Error ¶
func (m CreateCommentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCommentRequestValidationError ¶
type CreateCommentRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCommentRequestValidationError is the validation error returned by CreateCommentRequest.Validate if the designated constraints aren't met.
func (CreateCommentRequestValidationError) Cause ¶
func (e CreateCommentRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCommentRequestValidationError) Error ¶
func (e CreateCommentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCommentRequestValidationError) ErrorName ¶
func (e CreateCommentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCommentRequestValidationError) Field ¶
func (e CreateCommentRequestValidationError) Field() string
Field function returns field value.
func (CreateCommentRequestValidationError) Key ¶
func (e CreateCommentRequestValidationError) Key() bool
Key function returns key value.
func (CreateCommentRequestValidationError) Reason ¶
func (e CreateCommentRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteArticleReply ¶
type DeleteArticleReply struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleReply) Descriptor
deprecated
func (*DeleteArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleReply.ProtoReflect.Descriptor instead.
func (*DeleteArticleReply) GetMsg ¶
func (x *DeleteArticleReply) GetMsg() string
func (*DeleteArticleReply) ProtoMessage ¶
func (*DeleteArticleReply) ProtoMessage()
func (*DeleteArticleReply) ProtoReflect ¶
func (x *DeleteArticleReply) ProtoReflect() protoreflect.Message
func (*DeleteArticleReply) Reset ¶
func (x *DeleteArticleReply) Reset()
func (*DeleteArticleReply) String ¶
func (x *DeleteArticleReply) String() string
func (*DeleteArticleReply) Validate ¶
func (m *DeleteArticleReply) Validate() error
Validate checks the field values on DeleteArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteArticleReply) ValidateAll ¶
func (m *DeleteArticleReply) ValidateAll() error
ValidateAll checks the field values on DeleteArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteArticleReplyMultiError, or nil if none found.
type DeleteArticleReplyMultiError ¶
type DeleteArticleReplyMultiError []error
DeleteArticleReplyMultiError is an error wrapping multiple validation errors returned by DeleteArticleReply.ValidateAll() if the designated constraints aren't met.
func (DeleteArticleReplyMultiError) AllErrors ¶
func (m DeleteArticleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteArticleReplyMultiError) Error ¶
func (m DeleteArticleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteArticleReplyValidationError ¶
type DeleteArticleReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteArticleReplyValidationError is the validation error returned by DeleteArticleReply.Validate if the designated constraints aren't met.
func (DeleteArticleReplyValidationError) Cause ¶
func (e DeleteArticleReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteArticleReplyValidationError) Error ¶
func (e DeleteArticleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteArticleReplyValidationError) ErrorName ¶
func (e DeleteArticleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteArticleReplyValidationError) Field ¶
func (e DeleteArticleReplyValidationError) Field() string
Field function returns field value.
func (DeleteArticleReplyValidationError) Key ¶
func (e DeleteArticleReplyValidationError) Key() bool
Key function returns key value.
func (DeleteArticleReplyValidationError) Reason ¶
func (e DeleteArticleReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteArticleRequest ¶
type DeleteArticleRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteArticleRequest) Descriptor
deprecated
func (*DeleteArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleRequest.ProtoReflect.Descriptor instead.
func (*DeleteArticleRequest) GetId ¶
func (x *DeleteArticleRequest) GetId() int64
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
func (*DeleteArticleRequest) Validate ¶
func (m *DeleteArticleRequest) Validate() error
Validate checks the field values on DeleteArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteArticleRequest) ValidateAll ¶
func (m *DeleteArticleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteArticleRequestMultiError, or nil if none found.
type DeleteArticleRequestMultiError ¶
type DeleteArticleRequestMultiError []error
DeleteArticleRequestMultiError is an error wrapping multiple validation errors returned by DeleteArticleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteArticleRequestMultiError) AllErrors ¶
func (m DeleteArticleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteArticleRequestMultiError) Error ¶
func (m DeleteArticleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteArticleRequestValidationError ¶
type DeleteArticleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteArticleRequestValidationError is the validation error returned by DeleteArticleRequest.Validate if the designated constraints aren't met.
func (DeleteArticleRequestValidationError) Cause ¶
func (e DeleteArticleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteArticleRequestValidationError) Error ¶
func (e DeleteArticleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteArticleRequestValidationError) ErrorName ¶
func (e DeleteArticleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteArticleRequestValidationError) Field ¶
func (e DeleteArticleRequestValidationError) Field() string
Field function returns field value.
func (DeleteArticleRequestValidationError) Key ¶
func (e DeleteArticleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteArticleRequestValidationError) Reason ¶
func (e DeleteArticleRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_NOT_FOUND ErrorReason = 0 ErrorReason_CONTENT_MISSING ErrorReason = 1 ErrorReason_ARTICLE_NOT_FOUND ErrorReason = 2 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetArticleReply ¶
type GetArticleReply struct { Article *Article `protobuf:"bytes,1,opt,name=article,proto3" json:"article,omitempty"` // contains filtered or unexported fields }
func (*GetArticleReply) Descriptor
deprecated
func (*GetArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleReply.ProtoReflect.Descriptor instead.
func (*GetArticleReply) GetArticle ¶
func (x *GetArticleReply) GetArticle() *Article
func (*GetArticleReply) ProtoMessage ¶
func (*GetArticleReply) ProtoMessage()
func (*GetArticleReply) ProtoReflect ¶
func (x *GetArticleReply) ProtoReflect() protoreflect.Message
func (*GetArticleReply) Reset ¶
func (x *GetArticleReply) Reset()
func (*GetArticleReply) String ¶
func (x *GetArticleReply) String() string
func (*GetArticleReply) Validate ¶
func (m *GetArticleReply) Validate() error
Validate checks the field values on GetArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetArticleReply) ValidateAll ¶
func (m *GetArticleReply) ValidateAll() error
ValidateAll checks the field values on GetArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetArticleReplyMultiError, or nil if none found.
type GetArticleReplyMultiError ¶
type GetArticleReplyMultiError []error
GetArticleReplyMultiError is an error wrapping multiple validation errors returned by GetArticleReply.ValidateAll() if the designated constraints aren't met.
func (GetArticleReplyMultiError) AllErrors ¶
func (m GetArticleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetArticleReplyMultiError) Error ¶
func (m GetArticleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetArticleReplyValidationError ¶
type GetArticleReplyValidationError struct {
// contains filtered or unexported fields
}
GetArticleReplyValidationError is the validation error returned by GetArticleReply.Validate if the designated constraints aren't met.
func (GetArticleReplyValidationError) Cause ¶
func (e GetArticleReplyValidationError) Cause() error
Cause function returns cause value.
func (GetArticleReplyValidationError) Error ¶
func (e GetArticleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetArticleReplyValidationError) ErrorName ¶
func (e GetArticleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetArticleReplyValidationError) Field ¶
func (e GetArticleReplyValidationError) Field() string
Field function returns field value.
func (GetArticleReplyValidationError) Key ¶
func (e GetArticleReplyValidationError) Key() bool
Key function returns key value.
func (GetArticleReplyValidationError) Reason ¶
func (e GetArticleReplyValidationError) Reason() string
Reason function returns reason value.
type GetArticleRequest ¶
type GetArticleRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetArticleRequest) Descriptor
deprecated
func (*GetArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleRequest.ProtoReflect.Descriptor instead.
func (*GetArticleRequest) GetId ¶
func (x *GetArticleRequest) GetId() int64
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
func (*GetArticleRequest) Validate ¶
func (m *GetArticleRequest) Validate() error
Validate checks the field values on GetArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetArticleRequest) ValidateAll ¶
func (m *GetArticleRequest) ValidateAll() error
ValidateAll checks the field values on GetArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetArticleRequestMultiError, or nil if none found.
type GetArticleRequestMultiError ¶
type GetArticleRequestMultiError []error
GetArticleRequestMultiError is an error wrapping multiple validation errors returned by GetArticleRequest.ValidateAll() if the designated constraints aren't met.
func (GetArticleRequestMultiError) AllErrors ¶
func (m GetArticleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetArticleRequestMultiError) Error ¶
func (m GetArticleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetArticleRequestValidationError ¶
type GetArticleRequestValidationError struct {
// contains filtered or unexported fields
}
GetArticleRequestValidationError is the validation error returned by GetArticleRequest.Validate if the designated constraints aren't met.
func (GetArticleRequestValidationError) Cause ¶
func (e GetArticleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetArticleRequestValidationError) Error ¶
func (e GetArticleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetArticleRequestValidationError) ErrorName ¶
func (e GetArticleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetArticleRequestValidationError) Field ¶
func (e GetArticleRequestValidationError) Field() string
Field function returns field value.
func (GetArticleRequestValidationError) Key ¶
func (e GetArticleRequestValidationError) Key() bool
Key function returns key value.
func (GetArticleRequestValidationError) Reason ¶
func (e GetArticleRequestValidationError) Reason() string
Reason function returns reason value.
type ListArticleReply ¶
type ListArticleReply struct { Results []*Article `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListArticleReply) Descriptor
deprecated
func (*ListArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListArticleReply.ProtoReflect.Descriptor instead.
func (*ListArticleReply) GetResults ¶
func (x *ListArticleReply) GetResults() []*Article
func (*ListArticleReply) ProtoMessage ¶
func (*ListArticleReply) ProtoMessage()
func (*ListArticleReply) ProtoReflect ¶
func (x *ListArticleReply) ProtoReflect() protoreflect.Message
func (*ListArticleReply) Reset ¶
func (x *ListArticleReply) Reset()
func (*ListArticleReply) String ¶
func (x *ListArticleReply) String() string
func (*ListArticleReply) Validate ¶
func (m *ListArticleReply) Validate() error
Validate checks the field values on ListArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListArticleReply) ValidateAll ¶
func (m *ListArticleReply) ValidateAll() error
ValidateAll checks the field values on ListArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListArticleReplyMultiError, or nil if none found.
type ListArticleReplyMultiError ¶
type ListArticleReplyMultiError []error
ListArticleReplyMultiError is an error wrapping multiple validation errors returned by ListArticleReply.ValidateAll() if the designated constraints aren't met.
func (ListArticleReplyMultiError) AllErrors ¶
func (m ListArticleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListArticleReplyMultiError) Error ¶
func (m ListArticleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListArticleReplyValidationError ¶
type ListArticleReplyValidationError struct {
// contains filtered or unexported fields
}
ListArticleReplyValidationError is the validation error returned by ListArticleReply.Validate if the designated constraints aren't met.
func (ListArticleReplyValidationError) Cause ¶
func (e ListArticleReplyValidationError) Cause() error
Cause function returns cause value.
func (ListArticleReplyValidationError) Error ¶
func (e ListArticleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListArticleReplyValidationError) ErrorName ¶
func (e ListArticleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListArticleReplyValidationError) Field ¶
func (e ListArticleReplyValidationError) Field() string
Field function returns field value.
func (ListArticleReplyValidationError) Key ¶
func (e ListArticleReplyValidationError) Key() bool
Key function returns key value.
func (ListArticleReplyValidationError) Reason ¶
func (e ListArticleReplyValidationError) Reason() string
Reason function returns reason value.
type ListArticleRequest ¶
type ListArticleRequest struct {
// contains filtered or unexported fields
}
func (*ListArticleRequest) Descriptor
deprecated
func (*ListArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListArticleRequest.ProtoReflect.Descriptor instead.
func (*ListArticleRequest) ProtoMessage ¶
func (*ListArticleRequest) ProtoMessage()
func (*ListArticleRequest) ProtoReflect ¶
func (x *ListArticleRequest) ProtoReflect() protoreflect.Message
func (*ListArticleRequest) Reset ¶
func (x *ListArticleRequest) Reset()
func (*ListArticleRequest) String ¶
func (x *ListArticleRequest) String() string
func (*ListArticleRequest) Validate ¶
func (m *ListArticleRequest) Validate() error
Validate checks the field values on ListArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListArticleRequest) ValidateAll ¶
func (m *ListArticleRequest) ValidateAll() error
ValidateAll checks the field values on ListArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListArticleRequestMultiError, or nil if none found.
type ListArticleRequestMultiError ¶
type ListArticleRequestMultiError []error
ListArticleRequestMultiError is an error wrapping multiple validation errors returned by ListArticleRequest.ValidateAll() if the designated constraints aren't met.
func (ListArticleRequestMultiError) AllErrors ¶
func (m ListArticleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListArticleRequestMultiError) Error ¶
func (m ListArticleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListArticleRequestValidationError ¶
type ListArticleRequestValidationError struct {
// contains filtered or unexported fields
}
ListArticleRequestValidationError is the validation error returned by ListArticleRequest.Validate if the designated constraints aren't met.
func (ListArticleRequestValidationError) Cause ¶
func (e ListArticleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListArticleRequestValidationError) Error ¶
func (e ListArticleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListArticleRequestValidationError) ErrorName ¶
func (e ListArticleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListArticleRequestValidationError) Field ¶
func (e ListArticleRequestValidationError) Field() string
Field function returns field value.
func (ListArticleRequestValidationError) Key ¶
func (e ListArticleRequestValidationError) Key() bool
Key function returns key value.
func (ListArticleRequestValidationError) Reason ¶
func (e ListArticleRequestValidationError) Reason() string
Reason function returns reason value.
type ListCommentReply ¶
type ListCommentReply struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*ListCommentReply) Descriptor
deprecated
func (*ListCommentReply) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentReply.ProtoReflect.Descriptor instead.
func (*ListCommentReply) GetComments ¶
func (x *ListCommentReply) GetComments() []*Comment
func (*ListCommentReply) ProtoMessage ¶
func (*ListCommentReply) ProtoMessage()
func (*ListCommentReply) ProtoReflect ¶
func (x *ListCommentReply) ProtoReflect() protoreflect.Message
func (*ListCommentReply) Reset ¶
func (x *ListCommentReply) Reset()
func (*ListCommentReply) String ¶
func (x *ListCommentReply) String() string
func (*ListCommentReply) Validate ¶
func (m *ListCommentReply) Validate() error
Validate checks the field values on ListCommentReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListCommentReply) ValidateAll ¶
func (m *ListCommentReply) ValidateAll() error
ValidateAll checks the field values on ListCommentReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCommentReplyMultiError, or nil if none found.
type ListCommentReplyMultiError ¶
type ListCommentReplyMultiError []error
ListCommentReplyMultiError is an error wrapping multiple validation errors returned by ListCommentReply.ValidateAll() if the designated constraints aren't met.
func (ListCommentReplyMultiError) AllErrors ¶
func (m ListCommentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListCommentReplyMultiError) Error ¶
func (m ListCommentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListCommentReplyValidationError ¶
type ListCommentReplyValidationError struct {
// contains filtered or unexported fields
}
ListCommentReplyValidationError is the validation error returned by ListCommentReply.Validate if the designated constraints aren't met.
func (ListCommentReplyValidationError) Cause ¶
func (e ListCommentReplyValidationError) Cause() error
Cause function returns cause value.
func (ListCommentReplyValidationError) Error ¶
func (e ListCommentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListCommentReplyValidationError) ErrorName ¶
func (e ListCommentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListCommentReplyValidationError) Field ¶
func (e ListCommentReplyValidationError) Field() string
Field function returns field value.
func (ListCommentReplyValidationError) Key ¶
func (e ListCommentReplyValidationError) Key() bool
Key function returns key value.
func (ListCommentReplyValidationError) Reason ¶
func (e ListCommentReplyValidationError) Reason() string
Reason function returns reason value.
type ListCommentReq ¶
type ListCommentReq struct { ArticleId int64 `protobuf:"varint,1,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // contains filtered or unexported fields }
func (*ListCommentReq) Descriptor
deprecated
func (*ListCommentReq) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentReq.ProtoReflect.Descriptor instead.
func (*ListCommentReq) GetArticleId ¶
func (x *ListCommentReq) GetArticleId() int64
func (*ListCommentReq) ProtoMessage ¶
func (*ListCommentReq) ProtoMessage()
func (*ListCommentReq) ProtoReflect ¶
func (x *ListCommentReq) ProtoReflect() protoreflect.Message
func (*ListCommentReq) Reset ¶
func (x *ListCommentReq) Reset()
func (*ListCommentReq) String ¶
func (x *ListCommentReq) String() string
func (*ListCommentReq) Validate ¶
func (m *ListCommentReq) Validate() error
Validate checks the field values on ListCommentReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListCommentReq) ValidateAll ¶
func (m *ListCommentReq) ValidateAll() error
ValidateAll checks the field values on ListCommentReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCommentReqMultiError, or nil if none found.
type ListCommentReqMultiError ¶
type ListCommentReqMultiError []error
ListCommentReqMultiError is an error wrapping multiple validation errors returned by ListCommentReq.ValidateAll() if the designated constraints aren't met.
func (ListCommentReqMultiError) AllErrors ¶
func (m ListCommentReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListCommentReqMultiError) Error ¶
func (m ListCommentReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListCommentReqValidationError ¶
type ListCommentReqValidationError struct {
// contains filtered or unexported fields
}
ListCommentReqValidationError is the validation error returned by ListCommentReq.Validate if the designated constraints aren't met.
func (ListCommentReqValidationError) Cause ¶
func (e ListCommentReqValidationError) Cause() error
Cause function returns cause value.
func (ListCommentReqValidationError) Error ¶
func (e ListCommentReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListCommentReqValidationError) ErrorName ¶
func (e ListCommentReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListCommentReqValidationError) Field ¶
func (e ListCommentReqValidationError) Field() string
Field function returns field value.
func (ListCommentReqValidationError) Key ¶
func (e ListCommentReqValidationError) Key() bool
Key function returns key value.
func (ListCommentReqValidationError) Reason ¶
func (e ListCommentReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBlogServiceServer ¶
type UnimplementedBlogServiceServer struct { }
UnimplementedBlogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBlogServiceServer) CreateArticle ¶
func (UnimplementedBlogServiceServer) CreateArticle(context.Context, *CreateArticleRequest) (*CreateArticleReply, error)
func (UnimplementedBlogServiceServer) DeleteArticle ¶
func (UnimplementedBlogServiceServer) DeleteArticle(context.Context, *DeleteArticleRequest) (*DeleteArticleReply, error)
func (UnimplementedBlogServiceServer) GetArticle ¶
func (UnimplementedBlogServiceServer) GetArticle(context.Context, *GetArticleRequest) (*GetArticleReply, error)
func (UnimplementedBlogServiceServer) ListArticle ¶
func (UnimplementedBlogServiceServer) ListArticle(context.Context, *ListArticleRequest) (*ListArticleReply, error)
func (UnimplementedBlogServiceServer) UpdateArticle ¶
func (UnimplementedBlogServiceServer) UpdateArticle(context.Context, *UpdateArticleRequest) (*UpdateArticleReply, error)
type UnimplementedCommentServiceServer ¶
type UnimplementedCommentServiceServer struct { }
UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCommentServiceServer) CreateComment ¶
func (UnimplementedCommentServiceServer) CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentReply, error)
func (UnimplementedCommentServiceServer) ListArticleComment ¶
func (UnimplementedCommentServiceServer) ListArticleComment(context.Context, *ListCommentReq) (*ListCommentReply, error)
type UnsafeBlogServiceServer ¶
type UnsafeBlogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBlogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlogServiceServer will result in compilation errors.
type UnsafeCommentServiceServer ¶
type UnsafeCommentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentServiceServer will result in compilation errors.
type UpdateArticleReply ¶
type UpdateArticleReply struct { Article *Article `protobuf:"bytes,1,opt,name=Article,proto3" json:"Article,omitempty"` // contains filtered or unexported fields }
func (*UpdateArticleReply) Descriptor
deprecated
func (*UpdateArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleReply.ProtoReflect.Descriptor instead.
func (*UpdateArticleReply) GetArticle ¶
func (x *UpdateArticleReply) GetArticle() *Article
func (*UpdateArticleReply) ProtoMessage ¶
func (*UpdateArticleReply) ProtoMessage()
func (*UpdateArticleReply) ProtoReflect ¶
func (x *UpdateArticleReply) ProtoReflect() protoreflect.Message
func (*UpdateArticleReply) Reset ¶
func (x *UpdateArticleReply) Reset()
func (*UpdateArticleReply) String ¶
func (x *UpdateArticleReply) String() string
func (*UpdateArticleReply) Validate ¶
func (m *UpdateArticleReply) Validate() error
Validate checks the field values on UpdateArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateArticleReply) ValidateAll ¶
func (m *UpdateArticleReply) ValidateAll() error
ValidateAll checks the field values on UpdateArticleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateArticleReplyMultiError, or nil if none found.
type UpdateArticleReplyMultiError ¶
type UpdateArticleReplyMultiError []error
UpdateArticleReplyMultiError is an error wrapping multiple validation errors returned by UpdateArticleReply.ValidateAll() if the designated constraints aren't met.
func (UpdateArticleReplyMultiError) AllErrors ¶
func (m UpdateArticleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateArticleReplyMultiError) Error ¶
func (m UpdateArticleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateArticleReplyValidationError ¶
type UpdateArticleReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateArticleReplyValidationError is the validation error returned by UpdateArticleReply.Validate if the designated constraints aren't met.
func (UpdateArticleReplyValidationError) Cause ¶
func (e UpdateArticleReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateArticleReplyValidationError) Error ¶
func (e UpdateArticleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateArticleReplyValidationError) ErrorName ¶
func (e UpdateArticleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateArticleReplyValidationError) Field ¶
func (e UpdateArticleReplyValidationError) Field() string
Field function returns field value.
func (UpdateArticleReplyValidationError) Key ¶
func (e UpdateArticleReplyValidationError) Key() bool
Key function returns key value.
func (UpdateArticleReplyValidationError) Reason ¶
func (e UpdateArticleReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateArticleRequest ¶
type UpdateArticleRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // the title of string must be between 5 and 50 character; Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*UpdateArticleRequest) Descriptor
deprecated
func (*UpdateArticleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateArticleRequest.ProtoReflect.Descriptor instead.
func (*UpdateArticleRequest) GetContent ¶
func (x *UpdateArticleRequest) GetContent() string
func (*UpdateArticleRequest) GetId ¶
func (x *UpdateArticleRequest) GetId() int64
func (*UpdateArticleRequest) GetTitle ¶
func (x *UpdateArticleRequest) GetTitle() string
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
func (*UpdateArticleRequest) Validate ¶
func (m *UpdateArticleRequest) Validate() error
Validate checks the field values on UpdateArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateArticleRequest) ValidateAll ¶
func (m *UpdateArticleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateArticleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateArticleRequestMultiError, or nil if none found.
type UpdateArticleRequestMultiError ¶
type UpdateArticleRequestMultiError []error
UpdateArticleRequestMultiError is an error wrapping multiple validation errors returned by UpdateArticleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateArticleRequestMultiError) AllErrors ¶
func (m UpdateArticleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateArticleRequestMultiError) Error ¶
func (m UpdateArticleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateArticleRequestValidationError ¶
type UpdateArticleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateArticleRequestValidationError is the validation error returned by UpdateArticleRequest.Validate if the designated constraints aren't met.
func (UpdateArticleRequestValidationError) Cause ¶
func (e UpdateArticleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateArticleRequestValidationError) Error ¶
func (e UpdateArticleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateArticleRequestValidationError) ErrorName ¶
func (e UpdateArticleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateArticleRequestValidationError) Field ¶
func (e UpdateArticleRequestValidationError) Field() string
Field function returns field value.
func (UpdateArticleRequestValidationError) Key ¶
func (e UpdateArticleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateArticleRequestValidationError) Reason ¶
func (e UpdateArticleRequestValidationError) Reason() string
Reason function returns reason value.