Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorContentMissingLocalized(ctx context.Context, data map[string]interface{}, pluralCount interface{}) *errors.Error
- func IsContentMissing(err error) bool
- func RegisterPostServiceHTTPServer(s *http.Server, srv PostServiceHTTPServer)
- func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
- type CreatePostRequest
- func (*CreatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePostRequest) GetName() string
- func (*CreatePostRequest) ProtoMessage()
- func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePostRequest) Reset()
- func (x *CreatePostRequest) String() string
- func (m *CreatePostRequest) Validate() error
- func (m *CreatePostRequest) ValidateAll() error
- type CreatePostRequestMultiError
- type CreatePostRequestValidationError
- func (e CreatePostRequestValidationError) Cause() error
- func (e CreatePostRequestValidationError) Error() string
- func (e CreatePostRequestValidationError) ErrorName() string
- func (e CreatePostRequestValidationError) Field() string
- func (e CreatePostRequestValidationError) Key() bool
- func (e CreatePostRequestValidationError) Reason() string
- type DeletePostReply
- func (*DeletePostReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostReply) GetId() string
- func (x *DeletePostReply) GetName() string
- func (*DeletePostReply) ProtoMessage()
- func (x *DeletePostReply) ProtoReflect() protoreflect.Message
- func (x *DeletePostReply) Reset()
- func (x *DeletePostReply) String() string
- func (m *DeletePostReply) Validate() error
- func (m *DeletePostReply) ValidateAll() error
- type DeletePostReplyMultiError
- type DeletePostReplyValidationError
- func (e DeletePostReplyValidationError) Cause() error
- func (e DeletePostReplyValidationError) Error() string
- func (e DeletePostReplyValidationError) ErrorName() string
- func (e DeletePostReplyValidationError) Field() string
- func (e DeletePostReplyValidationError) Key() bool
- func (e DeletePostReplyValidationError) Reason() string
- type DeletePostRequest
- func (*DeletePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePostRequest) GetId() string
- func (*DeletePostRequest) ProtoMessage()
- func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePostRequest) Reset()
- func (x *DeletePostRequest) String() string
- func (m *DeletePostRequest) Validate() error
- func (m *DeletePostRequest) ValidateAll() error
- type DeletePostRequestMultiError
- type DeletePostRequestValidationError
- func (e DeletePostRequestValidationError) Cause() error
- func (e DeletePostRequestValidationError) Error() string
- func (e DeletePostRequestValidationError) ErrorName() string
- func (e DeletePostRequestValidationError) Field() string
- func (e DeletePostRequestValidationError) Key() bool
- func (e DeletePostRequestValidationError) 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 GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPostRequest) GetId() string
- func (*GetPostRequest) ProtoMessage()
- func (x *GetPostRequest) ProtoReflect() protoreflect.Message
- func (x *GetPostRequest) Reset()
- func (x *GetPostRequest) String() string
- func (m *GetPostRequest) Validate() error
- func (m *GetPostRequest) ValidateAll() error
- type GetPostRequestMultiError
- type GetPostRequestValidationError
- func (e GetPostRequestValidationError) Cause() error
- func (e GetPostRequestValidationError) Error() string
- func (e GetPostRequestValidationError) ErrorName() string
- func (e GetPostRequestValidationError) Field() string
- func (e GetPostRequestValidationError) Key() bool
- func (e GetPostRequestValidationError) Reason() string
- type ListPostReply
- func (*ListPostReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostReply) GetFilterSize() int32
- func (x *ListPostReply) GetItems() []*Post
- func (x *ListPostReply) GetTotalSize() int32
- func (*ListPostReply) ProtoMessage()
- func (x *ListPostReply) ProtoReflect() protoreflect.Message
- func (x *ListPostReply) Reset()
- func (x *ListPostReply) String() string
- func (m *ListPostReply) Validate() error
- func (m *ListPostReply) ValidateAll() error
- type ListPostReplyMultiError
- type ListPostReplyValidationError
- func (e ListPostReplyValidationError) Cause() error
- func (e ListPostReplyValidationError) Error() string
- func (e ListPostReplyValidationError) ErrorName() string
- func (e ListPostReplyValidationError) Field() string
- func (e ListPostReplyValidationError) Key() bool
- func (e ListPostReplyValidationError) Reason() string
- type ListPostRequest
- func (*ListPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPostRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *ListPostRequest) GetFilter() *PostFilter
- func (x *ListPostRequest) GetPageOffset() int32
- func (x *ListPostRequest) GetPageSize() int32
- func (x *ListPostRequest) GetSearch() string
- func (x *ListPostRequest) GetSort() []string
- func (*ListPostRequest) ProtoMessage()
- func (x *ListPostRequest) ProtoReflect() protoreflect.Message
- func (x *ListPostRequest) Reset()
- func (x *ListPostRequest) String() string
- func (m *ListPostRequest) Validate() error
- func (m *ListPostRequest) ValidateAll() error
- type ListPostRequestMultiError
- type ListPostRequestValidationError
- func (e ListPostRequestValidationError) Cause() error
- func (e ListPostRequestValidationError) Error() string
- func (e ListPostRequestValidationError) ErrorName() string
- func (e ListPostRequestValidationError) Field() string
- func (e ListPostRequestValidationError) Key() bool
- func (e ListPostRequestValidationError) Reason() string
- type Post
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (x *Post) GetCreatedAt() *timestamppb.Timestamp
- func (x *Post) GetId() string
- func (x *Post) GetName() string
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (x *Post) String() string
- func (m *Post) Validate() error
- func (m *Post) ValidateAll() error
- type PostFilter
- func (*PostFilter) Descriptor() ([]byte, []int)deprecated
- func (x *PostFilter) GetId() *query.StringFilterOperation
- func (x *PostFilter) GetName() *query.StringFilterOperation
- func (*PostFilter) ProtoMessage()
- func (x *PostFilter) ProtoReflect() protoreflect.Message
- func (x *PostFilter) Reset()
- func (x *PostFilter) String() string
- func (m *PostFilter) Validate() error
- func (m *PostFilter) ValidateAll() error
- type PostFilterMultiError
- type PostFilterValidationError
- type PostMultiError
- type PostServiceClient
- type PostServiceHTTPClient
- type PostServiceHTTPClientImpl
- func (c *PostServiceHTTPClientImpl) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...http.CallOption) (*Post, error)
- func (c *PostServiceHTTPClientImpl) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...http.CallOption) (*DeletePostReply, error)
- func (c *PostServiceHTTPClientImpl) GetPost(ctx context.Context, in *GetPostRequest, opts ...http.CallOption) (*Post, error)
- func (c *PostServiceHTTPClientImpl) ListPost(ctx context.Context, in *ListPostRequest, opts ...http.CallOption) (*ListPostReply, error)
- func (c *PostServiceHTTPClientImpl) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...http.CallOption) (*Post, error)
- type PostServiceHTTPServer
- type PostServiceServer
- type PostValidationError
- type UnimplementedPostServiceServer
- func (UnimplementedPostServiceServer) CreatePost(context.Context, *CreatePostRequest) (*Post, error)
- func (UnimplementedPostServiceServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
- func (UnimplementedPostServiceServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
- func (UnimplementedPostServiceServer) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error)
- func (UnimplementedPostServiceServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
- type UnsafePostServiceServer
- type UpdatePost
- func (*UpdatePost) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePost) GetId() string
- func (x *UpdatePost) GetName() string
- func (*UpdatePost) ProtoMessage()
- func (x *UpdatePost) ProtoReflect() protoreflect.Message
- func (x *UpdatePost) Reset()
- func (x *UpdatePost) String() string
- func (m *UpdatePost) Validate() error
- func (m *UpdatePost) ValidateAll() error
- type UpdatePostMultiError
- type UpdatePostRequest
- func (*UpdatePostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePostRequest) GetPost() *UpdatePost
- func (x *UpdatePostRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdatePostRequest) ProtoMessage()
- func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePostRequest) Reset()
- func (x *UpdatePostRequest) String() string
- func (m *UpdatePostRequest) Validate() error
- func (m *UpdatePostRequest) ValidateAll() error
- type UpdatePostRequestMultiError
- type UpdatePostRequestValidationError
- func (e UpdatePostRequestValidationError) Cause() error
- func (e UpdatePostRequestValidationError) Error() string
- func (e UpdatePostRequestValidationError) ErrorName() string
- func (e UpdatePostRequestValidationError) Field() string
- func (e UpdatePostRequestValidationError) Key() bool
- func (e UpdatePostRequestValidationError) Reason() string
- type UpdatePostValidationError
Constants ¶
const ( PostService_ListPost_FullMethodName = "/kit_layout.api.post.v1.PostService/ListPost" PostService_GetPost_FullMethodName = "/kit_layout.api.post.v1.PostService/GetPost" PostService_CreatePost_FullMethodName = "/kit_layout.api.post.v1.PostService/CreatePost" PostService_UpdatePost_FullMethodName = "/kit_layout.api.post.v1.PostService/UpdatePost" PostService_DeletePost_FullMethodName = "/kit_layout.api.post.v1.PostService/DeletePost" )
const OperationPostServiceCreatePost = "/kit_layout.api.post.v1.PostService/CreatePost"
const OperationPostServiceDeletePost = "/kit_layout.api.post.v1.PostService/DeletePost"
const OperationPostServiceGetPost = "/kit_layout.api.post.v1.PostService/GetPost"
const OperationPostServiceListPost = "/kit_layout.api.post.v1.PostService/ListPost"
const OperationPostServiceUpdatePost = "/kit_layout.api.post.v1.PostService/UpdatePost"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "CONTENT_MISSING", } ErrorReason_value = map[string]int32{ "CONTENT_MISSING": 0, } )
Enum value maps for ErrorReason.
var File_api_post_v1_error_reason_proto protoreflect.FileDescriptor
var File_api_post_v1_post_proto protoreflect.FileDescriptor
var PostService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kit_layout.api.post.v1.PostService", HandlerType: (*PostServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListPost", Handler: _PostService_ListPost_Handler, }, { MethodName: "GetPost", Handler: _PostService_GetPost_Handler, }, { MethodName: "CreatePost", Handler: _PostService_CreatePost_Handler, }, { MethodName: "UpdatePost", Handler: _PostService_UpdatePost_Handler, }, { MethodName: "DeletePost", Handler: _PostService_DeletePost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/post/v1/post.proto", }
PostService_ServiceDesc is the grpc.ServiceDesc for PostService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func IsContentMissing ¶
func RegisterPostServiceHTTPServer ¶
func RegisterPostServiceHTTPServer(s *http.Server, srv PostServiceHTTPServer)
func RegisterPostServiceServer ¶
func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
Types ¶
type CreatePostRequest ¶
type CreatePostRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreatePostRequest) Descriptor
deprecated
func (*CreatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePostRequest.ProtoReflect.Descriptor instead.
func (*CreatePostRequest) GetName ¶
func (x *CreatePostRequest) GetName() string
func (*CreatePostRequest) ProtoMessage ¶
func (*CreatePostRequest) ProtoMessage()
func (*CreatePostRequest) ProtoReflect ¶
func (x *CreatePostRequest) ProtoReflect() protoreflect.Message
func (*CreatePostRequest) Reset ¶
func (x *CreatePostRequest) Reset()
func (*CreatePostRequest) String ¶
func (x *CreatePostRequest) String() string
func (*CreatePostRequest) Validate ¶
func (m *CreatePostRequest) Validate() error
Validate checks the field values on CreatePostRequest 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 (*CreatePostRequest) ValidateAll ¶
func (m *CreatePostRequest) ValidateAll() error
ValidateAll checks the field values on CreatePostRequest 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 CreatePostRequestMultiError, or nil if none found.
type CreatePostRequestMultiError ¶
type CreatePostRequestMultiError []error
CreatePostRequestMultiError is an error wrapping multiple validation errors returned by CreatePostRequest.ValidateAll() if the designated constraints aren't met.
func (CreatePostRequestMultiError) AllErrors ¶
func (m CreatePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePostRequestMultiError) Error ¶
func (m CreatePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePostRequestValidationError ¶
type CreatePostRequestValidationError struct {
// contains filtered or unexported fields
}
CreatePostRequestValidationError is the validation error returned by CreatePostRequest.Validate if the designated constraints aren't met.
func (CreatePostRequestValidationError) Cause ¶
func (e CreatePostRequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePostRequestValidationError) Error ¶
func (e CreatePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePostRequestValidationError) ErrorName ¶
func (e CreatePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePostRequestValidationError) Field ¶
func (e CreatePostRequestValidationError) Field() string
Field function returns field value.
func (CreatePostRequestValidationError) Key ¶
func (e CreatePostRequestValidationError) Key() bool
Key function returns key value.
func (CreatePostRequestValidationError) Reason ¶
func (e CreatePostRequestValidationError) Reason() string
Reason function returns reason value.
type DeletePostReply ¶
type DeletePostReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeletePostReply) Descriptor
deprecated
func (*DeletePostReply) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostReply.ProtoReflect.Descriptor instead.
func (*DeletePostReply) GetId ¶
func (x *DeletePostReply) GetId() string
func (*DeletePostReply) GetName ¶
func (x *DeletePostReply) GetName() string
func (*DeletePostReply) ProtoMessage ¶
func (*DeletePostReply) ProtoMessage()
func (*DeletePostReply) ProtoReflect ¶
func (x *DeletePostReply) ProtoReflect() protoreflect.Message
func (*DeletePostReply) Reset ¶
func (x *DeletePostReply) Reset()
func (*DeletePostReply) String ¶
func (x *DeletePostReply) String() string
func (*DeletePostReply) Validate ¶
func (m *DeletePostReply) Validate() error
Validate checks the field values on DeletePostReply 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 (*DeletePostReply) ValidateAll ¶
func (m *DeletePostReply) ValidateAll() error
ValidateAll checks the field values on DeletePostReply 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 DeletePostReplyMultiError, or nil if none found.
type DeletePostReplyMultiError ¶
type DeletePostReplyMultiError []error
DeletePostReplyMultiError is an error wrapping multiple validation errors returned by DeletePostReply.ValidateAll() if the designated constraints aren't met.
func (DeletePostReplyMultiError) AllErrors ¶
func (m DeletePostReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePostReplyMultiError) Error ¶
func (m DeletePostReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePostReplyValidationError ¶
type DeletePostReplyValidationError struct {
// contains filtered or unexported fields
}
DeletePostReplyValidationError is the validation error returned by DeletePostReply.Validate if the designated constraints aren't met.
func (DeletePostReplyValidationError) Cause ¶
func (e DeletePostReplyValidationError) Cause() error
Cause function returns cause value.
func (DeletePostReplyValidationError) Error ¶
func (e DeletePostReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePostReplyValidationError) ErrorName ¶
func (e DeletePostReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePostReplyValidationError) Field ¶
func (e DeletePostReplyValidationError) Field() string
Field function returns field value.
func (DeletePostReplyValidationError) Key ¶
func (e DeletePostReplyValidationError) Key() bool
Key function returns key value.
func (DeletePostReplyValidationError) Reason ¶
func (e DeletePostReplyValidationError) Reason() string
Reason function returns reason value.
type DeletePostRequest ¶
type DeletePostRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePostRequest) Descriptor
deprecated
func (*DeletePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePostRequest.ProtoReflect.Descriptor instead.
func (*DeletePostRequest) GetId ¶
func (x *DeletePostRequest) GetId() string
func (*DeletePostRequest) ProtoMessage ¶
func (*DeletePostRequest) ProtoMessage()
func (*DeletePostRequest) ProtoReflect ¶
func (x *DeletePostRequest) ProtoReflect() protoreflect.Message
func (*DeletePostRequest) Reset ¶
func (x *DeletePostRequest) Reset()
func (*DeletePostRequest) String ¶
func (x *DeletePostRequest) String() string
func (*DeletePostRequest) Validate ¶
func (m *DeletePostRequest) Validate() error
Validate checks the field values on DeletePostRequest 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 (*DeletePostRequest) ValidateAll ¶
func (m *DeletePostRequest) ValidateAll() error
ValidateAll checks the field values on DeletePostRequest 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 DeletePostRequestMultiError, or nil if none found.
type DeletePostRequestMultiError ¶
type DeletePostRequestMultiError []error
DeletePostRequestMultiError is an error wrapping multiple validation errors returned by DeletePostRequest.ValidateAll() if the designated constraints aren't met.
func (DeletePostRequestMultiError) AllErrors ¶
func (m DeletePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePostRequestMultiError) Error ¶
func (m DeletePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePostRequestValidationError ¶
type DeletePostRequestValidationError struct {
// contains filtered or unexported fields
}
DeletePostRequestValidationError is the validation error returned by DeletePostRequest.Validate if the designated constraints aren't met.
func (DeletePostRequestValidationError) Cause ¶
func (e DeletePostRequestValidationError) Cause() error
Cause function returns cause value.
func (DeletePostRequestValidationError) Error ¶
func (e DeletePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePostRequestValidationError) ErrorName ¶
func (e DeletePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePostRequestValidationError) Field ¶
func (e DeletePostRequestValidationError) Field() string
Field function returns field value.
func (DeletePostRequestValidationError) Key ¶
func (e DeletePostRequestValidationError) Key() bool
Key function returns key value.
func (DeletePostRequestValidationError) Reason ¶
func (e DeletePostRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const (
ErrorReason_CONTENT_MISSING 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 GetPostRequest ¶
type GetPostRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetPostRequest) Descriptor
deprecated
func (*GetPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPostRequest.ProtoReflect.Descriptor instead.
func (*GetPostRequest) GetId ¶
func (x *GetPostRequest) GetId() string
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) ProtoReflect ¶
func (x *GetPostRequest) ProtoReflect() protoreflect.Message
func (*GetPostRequest) Reset ¶
func (x *GetPostRequest) Reset()
func (*GetPostRequest) String ¶
func (x *GetPostRequest) String() string
func (*GetPostRequest) Validate ¶
func (m *GetPostRequest) Validate() error
Validate checks the field values on GetPostRequest 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 (*GetPostRequest) ValidateAll ¶
func (m *GetPostRequest) ValidateAll() error
ValidateAll checks the field values on GetPostRequest 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 GetPostRequestMultiError, or nil if none found.
type GetPostRequestMultiError ¶
type GetPostRequestMultiError []error
GetPostRequestMultiError is an error wrapping multiple validation errors returned by GetPostRequest.ValidateAll() if the designated constraints aren't met.
func (GetPostRequestMultiError) AllErrors ¶
func (m GetPostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPostRequestMultiError) Error ¶
func (m GetPostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPostRequestValidationError ¶
type GetPostRequestValidationError struct {
// contains filtered or unexported fields
}
GetPostRequestValidationError is the validation error returned by GetPostRequest.Validate if the designated constraints aren't met.
func (GetPostRequestValidationError) Cause ¶
func (e GetPostRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPostRequestValidationError) Error ¶
func (e GetPostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPostRequestValidationError) ErrorName ¶
func (e GetPostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPostRequestValidationError) Field ¶
func (e GetPostRequestValidationError) Field() string
Field function returns field value.
func (GetPostRequestValidationError) Key ¶
func (e GetPostRequestValidationError) Key() bool
Key function returns key value.
func (GetPostRequestValidationError) Reason ¶
func (e GetPostRequestValidationError) Reason() string
Reason function returns reason value.
type ListPostReply ¶
type ListPostReply struct { TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` FilterSize int32 `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"` Items []*Post `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListPostReply) Descriptor
deprecated
func (*ListPostReply) Descriptor() ([]byte, []int)
Deprecated: Use ListPostReply.ProtoReflect.Descriptor instead.
func (*ListPostReply) GetFilterSize ¶
func (x *ListPostReply) GetFilterSize() int32
func (*ListPostReply) GetItems ¶
func (x *ListPostReply) GetItems() []*Post
func (*ListPostReply) GetTotalSize ¶
func (x *ListPostReply) GetTotalSize() int32
func (*ListPostReply) ProtoMessage ¶
func (*ListPostReply) ProtoMessage()
func (*ListPostReply) ProtoReflect ¶
func (x *ListPostReply) ProtoReflect() protoreflect.Message
func (*ListPostReply) Reset ¶
func (x *ListPostReply) Reset()
func (*ListPostReply) String ¶
func (x *ListPostReply) String() string
func (*ListPostReply) Validate ¶
func (m *ListPostReply) Validate() error
Validate checks the field values on ListPostReply 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 (*ListPostReply) ValidateAll ¶
func (m *ListPostReply) ValidateAll() error
ValidateAll checks the field values on ListPostReply 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 ListPostReplyMultiError, or nil if none found.
type ListPostReplyMultiError ¶
type ListPostReplyMultiError []error
ListPostReplyMultiError is an error wrapping multiple validation errors returned by ListPostReply.ValidateAll() if the designated constraints aren't met.
func (ListPostReplyMultiError) AllErrors ¶
func (m ListPostReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPostReplyMultiError) Error ¶
func (m ListPostReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPostReplyValidationError ¶
type ListPostReplyValidationError struct {
// contains filtered or unexported fields
}
ListPostReplyValidationError is the validation error returned by ListPostReply.Validate if the designated constraints aren't met.
func (ListPostReplyValidationError) Cause ¶
func (e ListPostReplyValidationError) Cause() error
Cause function returns cause value.
func (ListPostReplyValidationError) Error ¶
func (e ListPostReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListPostReplyValidationError) ErrorName ¶
func (e ListPostReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListPostReplyValidationError) Field ¶
func (e ListPostReplyValidationError) Field() string
Field function returns field value.
func (ListPostReplyValidationError) Key ¶
func (e ListPostReplyValidationError) Key() bool
Key function returns key value.
func (ListPostReplyValidationError) Reason ¶
func (e ListPostReplyValidationError) Reason() string
Reason function returns reason value.
type ListPostRequest ¶
type ListPostRequest struct { PageOffset int32 `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` Sort []string `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"` Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"` Filter *PostFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListPostRequest) Descriptor
deprecated
func (*ListPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPostRequest.ProtoReflect.Descriptor instead.
func (*ListPostRequest) GetFields ¶
func (x *ListPostRequest) GetFields() *fieldmaskpb.FieldMask
func (*ListPostRequest) GetFilter ¶
func (x *ListPostRequest) GetFilter() *PostFilter
func (*ListPostRequest) GetPageOffset ¶
func (x *ListPostRequest) GetPageOffset() int32
func (*ListPostRequest) GetPageSize ¶
func (x *ListPostRequest) GetPageSize() int32
func (*ListPostRequest) GetSearch ¶
func (x *ListPostRequest) GetSearch() string
func (*ListPostRequest) GetSort ¶
func (x *ListPostRequest) GetSort() []string
func (*ListPostRequest) ProtoMessage ¶
func (*ListPostRequest) ProtoMessage()
func (*ListPostRequest) ProtoReflect ¶
func (x *ListPostRequest) ProtoReflect() protoreflect.Message
func (*ListPostRequest) Reset ¶
func (x *ListPostRequest) Reset()
func (*ListPostRequest) String ¶
func (x *ListPostRequest) String() string
func (*ListPostRequest) Validate ¶
func (m *ListPostRequest) Validate() error
Validate checks the field values on ListPostRequest 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 (*ListPostRequest) ValidateAll ¶
func (m *ListPostRequest) ValidateAll() error
ValidateAll checks the field values on ListPostRequest 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 ListPostRequestMultiError, or nil if none found.
type ListPostRequestMultiError ¶
type ListPostRequestMultiError []error
ListPostRequestMultiError is an error wrapping multiple validation errors returned by ListPostRequest.ValidateAll() if the designated constraints aren't met.
func (ListPostRequestMultiError) AllErrors ¶
func (m ListPostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPostRequestMultiError) Error ¶
func (m ListPostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPostRequestValidationError ¶
type ListPostRequestValidationError struct {
// contains filtered or unexported fields
}
ListPostRequestValidationError is the validation error returned by ListPostRequest.Validate if the designated constraints aren't met.
func (ListPostRequestValidationError) Cause ¶
func (e ListPostRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPostRequestValidationError) Error ¶
func (e ListPostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPostRequestValidationError) ErrorName ¶
func (e ListPostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPostRequestValidationError) Field ¶
func (e ListPostRequestValidationError) Field() string
Field function returns field value.
func (ListPostRequestValidationError) Key ¶
func (e ListPostRequestValidationError) Key() bool
Key function returns key value.
func (ListPostRequestValidationError) Reason ¶
func (e ListPostRequestValidationError) Reason() string
Reason function returns reason value.
type Post ¶
type Post struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Post) Descriptor
deprecated
func (*Post) GetCreatedAt ¶
func (x *Post) GetCreatedAt() *timestamppb.Timestamp
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
func (*Post) Validate ¶
Validate checks the field values on Post 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 (*Post) ValidateAll ¶
ValidateAll checks the field values on Post 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 PostMultiError, or nil if none found.
type PostFilter ¶
type PostFilter struct { Id *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *query.StringFilterOperation `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PostFilter) Descriptor
deprecated
func (*PostFilter) Descriptor() ([]byte, []int)
Deprecated: Use PostFilter.ProtoReflect.Descriptor instead.
func (*PostFilter) GetId ¶
func (x *PostFilter) GetId() *query.StringFilterOperation
func (*PostFilter) GetName ¶
func (x *PostFilter) GetName() *query.StringFilterOperation
func (*PostFilter) ProtoMessage ¶
func (*PostFilter) ProtoMessage()
func (*PostFilter) ProtoReflect ¶
func (x *PostFilter) ProtoReflect() protoreflect.Message
func (*PostFilter) Reset ¶
func (x *PostFilter) Reset()
func (*PostFilter) String ¶
func (x *PostFilter) String() string
func (*PostFilter) Validate ¶
func (m *PostFilter) Validate() error
Validate checks the field values on PostFilter 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 (*PostFilter) ValidateAll ¶
func (m *PostFilter) ValidateAll() error
ValidateAll checks the field values on PostFilter 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 PostFilterMultiError, or nil if none found.
type PostFilterMultiError ¶
type PostFilterMultiError []error
PostFilterMultiError is an error wrapping multiple validation errors returned by PostFilter.ValidateAll() if the designated constraints aren't met.
func (PostFilterMultiError) AllErrors ¶
func (m PostFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostFilterMultiError) Error ¶
func (m PostFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostFilterValidationError ¶
type PostFilterValidationError struct {
// contains filtered or unexported fields
}
PostFilterValidationError is the validation error returned by PostFilter.Validate if the designated constraints aren't met.
func (PostFilterValidationError) Cause ¶
func (e PostFilterValidationError) Cause() error
Cause function returns cause value.
func (PostFilterValidationError) Error ¶
func (e PostFilterValidationError) Error() string
Error satisfies the builtin error interface
func (PostFilterValidationError) ErrorName ¶
func (e PostFilterValidationError) ErrorName() string
ErrorName returns error name.
func (PostFilterValidationError) Field ¶
func (e PostFilterValidationError) Field() string
Field function returns field value.
func (PostFilterValidationError) Key ¶
func (e PostFilterValidationError) Key() bool
Key function returns key value.
func (PostFilterValidationError) Reason ¶
func (e PostFilterValidationError) Reason() string
Reason function returns reason value.
type PostMultiError ¶
type PostMultiError []error
PostMultiError is an error wrapping multiple validation errors returned by Post.ValidateAll() if the designated constraints aren't met.
func (PostMultiError) AllErrors ¶
func (m PostMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PostMultiError) Error ¶
func (m PostMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PostServiceClient ¶
type PostServiceClient interface { ListPost(ctx context.Context, in *ListPostRequest, opts ...grpc.CallOption) (*ListPostReply, error) GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*Post, error) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...grpc.CallOption) (*Post, error) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...grpc.CallOption) (*Post, error) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...grpc.CallOption) (*DeletePostReply, error) }
PostServiceClient is the client API for PostService 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 NewPostServiceClient ¶
func NewPostServiceClient(cc grpc.ClientConnInterface) PostServiceClient
type PostServiceHTTPClient ¶
type PostServiceHTTPClient interface { CreatePost(ctx context.Context, req *CreatePostRequest, opts ...http.CallOption) (rsp *Post, err error) DeletePost(ctx context.Context, req *DeletePostRequest, opts ...http.CallOption) (rsp *DeletePostReply, err error) GetPost(ctx context.Context, req *GetPostRequest, opts ...http.CallOption) (rsp *Post, err error) ListPost(ctx context.Context, req *ListPostRequest, opts ...http.CallOption) (rsp *ListPostReply, err error) UpdatePost(ctx context.Context, req *UpdatePostRequest, opts ...http.CallOption) (rsp *Post, err error) }
func NewPostServiceHTTPClient ¶
func NewPostServiceHTTPClient(client *http.Client) PostServiceHTTPClient
type PostServiceHTTPClientImpl ¶
type PostServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*PostServiceHTTPClientImpl) CreatePost ¶
func (c *PostServiceHTTPClientImpl) CreatePost(ctx context.Context, in *CreatePostRequest, opts ...http.CallOption) (*Post, error)
func (*PostServiceHTTPClientImpl) DeletePost ¶
func (c *PostServiceHTTPClientImpl) DeletePost(ctx context.Context, in *DeletePostRequest, opts ...http.CallOption) (*DeletePostReply, error)
func (*PostServiceHTTPClientImpl) GetPost ¶
func (c *PostServiceHTTPClientImpl) GetPost(ctx context.Context, in *GetPostRequest, opts ...http.CallOption) (*Post, error)
func (*PostServiceHTTPClientImpl) ListPost ¶
func (c *PostServiceHTTPClientImpl) ListPost(ctx context.Context, in *ListPostRequest, opts ...http.CallOption) (*ListPostReply, error)
func (*PostServiceHTTPClientImpl) UpdatePost ¶
func (c *PostServiceHTTPClientImpl) UpdatePost(ctx context.Context, in *UpdatePostRequest, opts ...http.CallOption) (*Post, error)
type PostServiceHTTPServer ¶
type PostServiceHTTPServer interface { CreatePost(context.Context, *CreatePostRequest) (*Post, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error) GetPost(context.Context, *GetPostRequest) (*Post, error) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error) }
type PostServiceServer ¶
type PostServiceServer interface { ListPost(context.Context, *ListPostRequest) (*ListPostReply, error) GetPost(context.Context, *GetPostRequest) (*Post, error) CreatePost(context.Context, *CreatePostRequest) (*Post, error) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error) // contains filtered or unexported methods }
PostServiceServer is the server API for PostService service. All implementations must embed UnimplementedPostServiceServer for forward compatibility
type PostValidationError ¶
type PostValidationError struct {
// contains filtered or unexported fields
}
PostValidationError is the validation error returned by Post.Validate if the designated constraints aren't met.
func (PostValidationError) Cause ¶
func (e PostValidationError) Cause() error
Cause function returns cause value.
func (PostValidationError) Error ¶
func (e PostValidationError) Error() string
Error satisfies the builtin error interface
func (PostValidationError) ErrorName ¶
func (e PostValidationError) ErrorName() string
ErrorName returns error name.
func (PostValidationError) Field ¶
func (e PostValidationError) Field() string
Field function returns field value.
func (PostValidationError) Key ¶
func (e PostValidationError) Key() bool
Key function returns key value.
func (PostValidationError) Reason ¶
func (e PostValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPostServiceServer ¶
type UnimplementedPostServiceServer struct { }
UnimplementedPostServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPostServiceServer) CreatePost ¶
func (UnimplementedPostServiceServer) CreatePost(context.Context, *CreatePostRequest) (*Post, error)
func (UnimplementedPostServiceServer) DeletePost ¶
func (UnimplementedPostServiceServer) DeletePost(context.Context, *DeletePostRequest) (*DeletePostReply, error)
func (UnimplementedPostServiceServer) GetPost ¶
func (UnimplementedPostServiceServer) GetPost(context.Context, *GetPostRequest) (*Post, error)
func (UnimplementedPostServiceServer) ListPost ¶
func (UnimplementedPostServiceServer) ListPost(context.Context, *ListPostRequest) (*ListPostReply, error)
func (UnimplementedPostServiceServer) UpdatePost ¶
func (UnimplementedPostServiceServer) UpdatePost(context.Context, *UpdatePostRequest) (*Post, error)
type UnsafePostServiceServer ¶
type UnsafePostServiceServer interface {
// contains filtered or unexported methods
}
UnsafePostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServiceServer will result in compilation errors.
type UpdatePost ¶
type UpdatePost struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UpdatePost) Descriptor
deprecated
func (*UpdatePost) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePost.ProtoReflect.Descriptor instead.
func (*UpdatePost) GetId ¶
func (x *UpdatePost) GetId() string
func (*UpdatePost) GetName ¶
func (x *UpdatePost) GetName() string
func (*UpdatePost) ProtoMessage ¶
func (*UpdatePost) ProtoMessage()
func (*UpdatePost) ProtoReflect ¶
func (x *UpdatePost) ProtoReflect() protoreflect.Message
func (*UpdatePost) Reset ¶
func (x *UpdatePost) Reset()
func (*UpdatePost) String ¶
func (x *UpdatePost) String() string
func (*UpdatePost) Validate ¶
func (m *UpdatePost) Validate() error
Validate checks the field values on UpdatePost 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 (*UpdatePost) ValidateAll ¶
func (m *UpdatePost) ValidateAll() error
ValidateAll checks the field values on UpdatePost 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 UpdatePostMultiError, or nil if none found.
type UpdatePostMultiError ¶
type UpdatePostMultiError []error
UpdatePostMultiError is an error wrapping multiple validation errors returned by UpdatePost.ValidateAll() if the designated constraints aren't met.
func (UpdatePostMultiError) AllErrors ¶
func (m UpdatePostMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePostMultiError) Error ¶
func (m UpdatePostMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePostRequest ¶
type UpdatePostRequest struct { Post *UpdatePost `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePostRequest) Descriptor
deprecated
func (*UpdatePostRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostRequest.ProtoReflect.Descriptor instead.
func (*UpdatePostRequest) GetPost ¶
func (x *UpdatePostRequest) GetPost() *UpdatePost
func (*UpdatePostRequest) GetUpdateMask ¶
func (x *UpdatePostRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdatePostRequest) ProtoMessage ¶
func (*UpdatePostRequest) ProtoMessage()
func (*UpdatePostRequest) ProtoReflect ¶
func (x *UpdatePostRequest) ProtoReflect() protoreflect.Message
func (*UpdatePostRequest) Reset ¶
func (x *UpdatePostRequest) Reset()
func (*UpdatePostRequest) String ¶
func (x *UpdatePostRequest) String() string
func (*UpdatePostRequest) Validate ¶
func (m *UpdatePostRequest) Validate() error
Validate checks the field values on UpdatePostRequest 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 (*UpdatePostRequest) ValidateAll ¶
func (m *UpdatePostRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePostRequest 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 UpdatePostRequestMultiError, or nil if none found.
type UpdatePostRequestMultiError ¶
type UpdatePostRequestMultiError []error
UpdatePostRequestMultiError is an error wrapping multiple validation errors returned by UpdatePostRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePostRequestMultiError) AllErrors ¶
func (m UpdatePostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePostRequestMultiError) Error ¶
func (m UpdatePostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePostRequestValidationError ¶
type UpdatePostRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePostRequestValidationError is the validation error returned by UpdatePostRequest.Validate if the designated constraints aren't met.
func (UpdatePostRequestValidationError) Cause ¶
func (e UpdatePostRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePostRequestValidationError) Error ¶
func (e UpdatePostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePostRequestValidationError) ErrorName ¶
func (e UpdatePostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePostRequestValidationError) Field ¶
func (e UpdatePostRequestValidationError) Field() string
Field function returns field value.
func (UpdatePostRequestValidationError) Key ¶
func (e UpdatePostRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePostRequestValidationError) Reason ¶
func (e UpdatePostRequestValidationError) Reason() string
Reason function returns reason value.
type UpdatePostValidationError ¶
type UpdatePostValidationError struct {
// contains filtered or unexported fields
}
UpdatePostValidationError is the validation error returned by UpdatePost.Validate if the designated constraints aren't met.
func (UpdatePostValidationError) Cause ¶
func (e UpdatePostValidationError) Cause() error
Cause function returns cause value.
func (UpdatePostValidationError) Error ¶
func (e UpdatePostValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePostValidationError) ErrorName ¶
func (e UpdatePostValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePostValidationError) Field ¶
func (e UpdatePostValidationError) Field() string
Field function returns field value.
func (UpdatePostValidationError) Key ¶
func (e UpdatePostValidationError) Key() bool
Key function returns key value.
func (UpdatePostValidationError) Reason ¶
func (e UpdatePostValidationError) Reason() string
Reason function returns reason value.