Documentation ¶
Index ¶
- Variables
- func RegisterReplyServer(s grpc.ServiceRegistrar, srv ReplyServer)
- type CommentItem
- func (*CommentItem) Descriptor() ([]byte, []int)deprecated
- func (x *CommentItem) GetBeReplyUserId() int64
- func (x *CommentItem) GetBusiness() string
- func (x *CommentItem) GetContent() string
- func (x *CommentItem) GetCreateTime() int64
- func (x *CommentItem) GetId() int64
- func (x *CommentItem) GetImage() string
- func (x *CommentItem) GetParentId() int64
- func (x *CommentItem) GetReplyUserId() int64
- func (x *CommentItem) GetTargetId() int64
- func (x *CommentItem) GetUpdateTime() int64
- func (*CommentItem) ProtoMessage()
- func (x *CommentItem) ProtoReflect() protoreflect.Message
- func (x *CommentItem) Reset()
- func (x *CommentItem) String() string
- type CommentsRequest
- func (*CommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentsRequest) GetCursor() int64
- func (x *CommentsRequest) GetPs() int32
- func (x *CommentsRequest) GetTargetId() int64
- func (*CommentsRequest) ProtoMessage()
- func (x *CommentsRequest) ProtoReflect() protoreflect.Message
- func (x *CommentsRequest) Reset()
- func (x *CommentsRequest) String() string
- type CommentsResponse
- func (*CommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentsResponse) GetComments() []*CommentItem
- func (x *CommentsResponse) GetCreatedTime() int64
- func (x *CommentsResponse) GetIsEnd() bool
- func (*CommentsResponse) ProtoMessage()
- func (x *CommentsResponse) ProtoReflect() protoreflect.Message
- func (x *CommentsResponse) Reset()
- func (x *CommentsResponse) String() string
- type Reply
- type ReplyClient
- type ReplyServer
- type UnimplementedReplyServer
- type UnsafeReplyServer
Constants ¶
This section is empty.
Variables ¶
var File_reply_proto protoreflect.FileDescriptor
var Reply_ServiceDesc = grpc.ServiceDesc{ ServiceName: "template.Reply", HandlerType: (*ReplyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Comments", Handler: _Reply_Comments_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "reply.proto", }
Reply_ServiceDesc is the grpc.ServiceDesc for Reply service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReplyServer ¶
func RegisterReplyServer(s grpc.ServiceRegistrar, srv ReplyServer)
Types ¶
type CommentItem ¶
type CommentItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty"` TargetId int64 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` ReplyUserId int64 `protobuf:"varint,4,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` BeReplyUserId int64 `protobuf:"varint,5,opt,name=be_reply_user_id,json=beReplyUserId,proto3" json:"be_reply_user_id,omitempty"` ParentId int64 `protobuf:"varint,6,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` CreateTime int64 `protobuf:"varint,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime int64 `protobuf:"varint,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
func (*CommentItem) Descriptor
deprecated
func (*CommentItem) Descriptor() ([]byte, []int)
Deprecated: Use CommentItem.ProtoReflect.Descriptor instead.
func (*CommentItem) GetBeReplyUserId ¶
func (x *CommentItem) GetBeReplyUserId() int64
func (*CommentItem) GetBusiness ¶
func (x *CommentItem) GetBusiness() string
func (*CommentItem) GetContent ¶
func (x *CommentItem) GetContent() string
func (*CommentItem) GetCreateTime ¶
func (x *CommentItem) GetCreateTime() int64
func (*CommentItem) GetId ¶
func (x *CommentItem) GetId() int64
func (*CommentItem) GetImage ¶
func (x *CommentItem) GetImage() string
func (*CommentItem) GetParentId ¶
func (x *CommentItem) GetParentId() int64
func (*CommentItem) GetReplyUserId ¶
func (x *CommentItem) GetReplyUserId() int64
func (*CommentItem) GetTargetId ¶
func (x *CommentItem) GetTargetId() int64
func (*CommentItem) GetUpdateTime ¶
func (x *CommentItem) GetUpdateTime() int64
func (*CommentItem) ProtoMessage ¶
func (*CommentItem) ProtoMessage()
func (*CommentItem) ProtoReflect ¶
func (x *CommentItem) ProtoReflect() protoreflect.Message
func (*CommentItem) Reset ¶
func (x *CommentItem) Reset()
func (*CommentItem) String ¶
func (x *CommentItem) String() string
type CommentsRequest ¶
type CommentsRequest struct { TargetId int64 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` Cursor int64 `protobuf:"varint,2,opt,name=cursor,proto3" json:"cursor,omitempty"` Ps int32 `protobuf:"varint,3,opt,name=ps,proto3" json:"ps,omitempty"` // contains filtered or unexported fields }
func (*CommentsRequest) Descriptor
deprecated
func (*CommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentsRequest.ProtoReflect.Descriptor instead.
func (*CommentsRequest) GetCursor ¶
func (x *CommentsRequest) GetCursor() int64
func (*CommentsRequest) GetPs ¶
func (x *CommentsRequest) GetPs() int32
func (*CommentsRequest) GetTargetId ¶
func (x *CommentsRequest) GetTargetId() int64
func (*CommentsRequest) ProtoMessage ¶
func (*CommentsRequest) ProtoMessage()
func (*CommentsRequest) ProtoReflect ¶
func (x *CommentsRequest) ProtoReflect() protoreflect.Message
func (*CommentsRequest) Reset ¶
func (x *CommentsRequest) Reset()
func (*CommentsRequest) String ¶
func (x *CommentsRequest) String() string
type CommentsResponse ¶
type CommentsResponse struct { Comments []*CommentItem `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` IsEnd bool `protobuf:"varint,2,opt,name=is_end,json=isEnd,proto3" json:"is_end,omitempty"` CreatedTime int64 `protobuf:"varint,3,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` // contains filtered or unexported fields }
func (*CommentsResponse) Descriptor
deprecated
func (*CommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentsResponse.ProtoReflect.Descriptor instead.
func (*CommentsResponse) GetComments ¶
func (x *CommentsResponse) GetComments() []*CommentItem
func (*CommentsResponse) GetCreatedTime ¶
func (x *CommentsResponse) GetCreatedTime() int64
func (*CommentsResponse) GetIsEnd ¶
func (x *CommentsResponse) GetIsEnd() bool
func (*CommentsResponse) ProtoMessage ¶
func (*CommentsResponse) ProtoMessage()
func (*CommentsResponse) ProtoReflect ¶
func (x *CommentsResponse) ProtoReflect() protoreflect.Message
func (*CommentsResponse) Reset ¶
func (x *CommentsResponse) Reset()
func (*CommentsResponse) String ¶
func (x *CommentsResponse) String() string
type Reply ¶
type Reply interface {
Comments(ctx context.Context, in *CommentsRequest, opts ...grpc.CallOption) (*CommentsResponse, error)
}
type ReplyClient ¶
type ReplyClient interface {
Comments(ctx context.Context, in *CommentsRequest, opts ...grpc.CallOption) (*CommentsResponse, error)
}
ReplyClient is the client API for Reply 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 NewReplyClient ¶
func NewReplyClient(cc grpc.ClientConnInterface) ReplyClient
type ReplyServer ¶
type ReplyServer interface { Comments(context.Context, *CommentsRequest) (*CommentsResponse, error) // contains filtered or unexported methods }
ReplyServer is the server API for Reply service. All implementations must embed UnimplementedReplyServer for forward compatibility
type UnimplementedReplyServer ¶
type UnimplementedReplyServer struct { }
UnimplementedReplyServer must be embedded to have forward compatible implementations.
func (UnimplementedReplyServer) Comments ¶
func (UnimplementedReplyServer) Comments(context.Context, *CommentsRequest) (*CommentsResponse, error)
type UnsafeReplyServer ¶
type UnsafeReplyServer interface {
// contains filtered or unexported methods
}
UnsafeReplyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReplyServer will result in compilation errors.