Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_micro_services_blog_comments_proto_comments_proto protoreflect.FileDescriptor
Functions ¶
func NewCommentsEndpoints ¶
func RegisterCommentsHandler ¶
func RegisterCommentsHandler(s server.Server, hdlr CommentsHandler, opts ...server.HandlerOption) error
Types ¶
type CommentsHandler ¶
type CommentsService ¶
type CommentsService interface {
Save(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewCommentsService ¶
func NewCommentsService(name string, c client.Client) CommentsService
type Request ¶
type Request struct {
// post to comment on
PostId string `protobuf:"bytes,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
// message to leave
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetMessage ¶ added in v0.11.0
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v0.11.0
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶ added in v0.11.0
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.