v1

package
v0.0.0-...-a76f623 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationPostServiceCreatePost = "/kit_layout.api.post.v1.PostService/CreatePost"
View Source
const OperationPostServiceDeletePost = "/kit_layout.api.post.v1.PostService/DeletePost"
View Source
const OperationPostServiceGetPost = "/kit_layout.api.post.v1.PostService/GetPost"
View Source
const OperationPostServiceListPost = "/kit_layout.api.post.v1.PostService/ListPost"
View Source
const OperationPostServiceUpdatePost = "/kit_layout.api.post.v1.PostService/UpdatePost"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "CONTENT_MISSING",
	}
	ErrorReason_value = map[string]int32{
		"CONTENT_MISSING": 0,
	}
)

Enum value maps for ErrorReason.

View Source
var File_api_post_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_api_post_v1_post_proto protoreflect.FileDescriptor
View Source
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 ErrorContentMissingLocalized

func ErrorContentMissingLocalized(ctx context.Context, data map[string]interface{}, pluralCount interface{}) *errors.Error

func IsContentMissing

func IsContentMissing(err error) bool

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

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

Cause function returns cause value.

func (CreatePostRequestValidationError) Error

Error satisfies the builtin error interface

func (CreatePostRequestValidationError) ErrorName

ErrorName returns error name.

func (CreatePostRequestValidationError) Field

Field function returns field value.

func (CreatePostRequestValidationError) Key

Key function returns key value.

func (CreatePostRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeletePostReplyValidationError) Error

Error satisfies the builtin error interface

func (DeletePostReplyValidationError) ErrorName

func (e DeletePostReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeletePostReplyValidationError) Field

Field function returns field value.

func (DeletePostReplyValidationError) Key

Key function returns key value.

func (DeletePostReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeletePostRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletePostRequestValidationError) ErrorName

ErrorName returns error name.

func (DeletePostRequestValidationError) Field

Field function returns field value.

func (DeletePostRequestValidationError) Key

Key function returns key value.

func (DeletePostRequestValidationError) Reason

Reason function returns reason value.

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_CONTENT_MISSING ErrorReason = 0
)

func (ErrorReason) Descriptor

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

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

Cause function returns cause value.

func (GetPostRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPostRequestValidationError) ErrorName

func (e GetPostRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetPostRequestValidationError) Field

Field function returns field value.

func (GetPostRequestValidationError) Key

Key function returns key value.

func (GetPostRequestValidationError) Reason

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

Cause function returns cause value.

func (ListPostReplyValidationError) Error

Error satisfies the builtin error interface

func (ListPostReplyValidationError) ErrorName

func (e ListPostReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListPostReplyValidationError) Field

Field function returns field value.

func (ListPostReplyValidationError) Key

Key function returns key value.

func (ListPostReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListPostRequestValidationError) Error

Error satisfies the builtin error interface

func (ListPostRequestValidationError) ErrorName

func (e ListPostRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListPostRequestValidationError) Field

Field function returns field value.

func (ListPostRequestValidationError) Key

Key function returns key value.

func (ListPostRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetCreatedAt

func (x *Post) GetCreatedAt() *timestamppb.Timestamp

func (*Post) GetId

func (x *Post) GetId() string

func (*Post) GetName

func (x *Post) GetName() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

func (x *Post) ProtoReflect() protoreflect.Message

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

func (*Post) Validate

func (m *Post) Validate() error

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

func (m *Post) ValidateAll() error

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 (*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

Error satisfies the builtin error interface

func (PostFilterValidationError) ErrorName

func (e PostFilterValidationError) ErrorName() string

ErrorName returns error name.

func (PostFilterValidationError) Field

Field function returns field value.

func (PostFilterValidationError) Key

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.

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 (*PostServiceHTTPClientImpl) GetPost

func (*PostServiceHTTPClientImpl) ListPost

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) DeletePost

func (UnimplementedPostServiceServer) GetPost

func (UnimplementedPostServiceServer) ListPost

func (UnimplementedPostServiceServer) UpdatePost

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

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

Cause function returns cause value.

func (UpdatePostRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePostRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePostRequestValidationError) Field

Field function returns field value.

func (UpdatePostRequestValidationError) Key

Key function returns key value.

func (UpdatePostRequestValidationError) Reason

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

Error satisfies the builtin error interface

func (UpdatePostValidationError) ErrorName

func (e UpdatePostValidationError) ErrorName() string

ErrorName returns error name.

func (UpdatePostValidationError) Field

Field function returns field value.

func (UpdatePostValidationError) Key

Key function returns key value.

func (UpdatePostValidationError) Reason

func (e UpdatePostValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL