Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorBlogInvalidId(format string, args ...interface{}) *errors.Error
- func IsBlogInvalidId(err error) bool
- func RegisterBlogServiceHTTPServer(s *http.Server, srv BlogServiceHTTPServer)
- func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
- 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 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 DeleteArticleReply
- func (*DeleteArticleReply) Descriptor() ([]byte, []int)deprecated
- 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 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 UnsafeBlogServiceServer
- 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 ¶
const OperationBlogServiceCreateArticle = "/blog.api.v1.BlogService/CreateArticle"
const OperationBlogServiceDeleteArticle = "/blog.api.v1.BlogService/DeleteArticle"
const OperationBlogServiceGetArticle = "/blog.api.v1.BlogService/GetArticle"
const OperationBlogServiceListArticle = "/blog.api.v1.BlogService/ListArticle"
const OperationBlogServiceUpdateArticle = "/blog.api.v1.BlogService/UpdateArticle"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "BLOG_INVALID_ID", } ErrorReason_value = map[string]int32{ "BLOG_INVALID_ID": 0, } )
Enum value maps for ErrorReason.
var BlogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blog.api.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: "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 File_blog_v1_blog_proto protoreflect.FileDescriptor
var File_blog_v1_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorBlogInvalidId ¶
func IsBlogInvalidId ¶
func RegisterBlogServiceHTTPServer ¶
func RegisterBlogServiceHTTPServer(s *http.Server, srv BlogServiceHTTPServer)
func RegisterBlogServiceServer ¶
func RegisterBlogServiceServer(s grpc.ServiceRegistrar, srv BlogServiceServer)
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) }
BlogServiceServer is the server API for BlogService service. All implementations should embed UnimplementedBlogServiceServer for forward compatibility
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 DeleteArticleReply ¶
type DeleteArticleReply struct {
// contains filtered or unexported fields
}
func (*DeleteArticleReply) Descriptor
deprecated
func (*DeleteArticleReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArticleReply.ProtoReflect.Descriptor instead.
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_BLOG_INVALID_ID ErrorReason = 0
)
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 UnimplementedBlogServiceServer ¶
type UnimplementedBlogServiceServer struct { }
UnimplementedBlogServiceServer should 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 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 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.