Versions in this module Expand all Collapse all v1 v1.0.1 Sep 15, 2021 Changes in this version + func RegisterChatServer(s *grpc.Server, srv ChatServer) + type CHSaveReq struct + ToUid uint64 + Uid uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*CHSaveReq) Descriptor() ([]byte, []int) + func (*CHSaveReq) ProtoMessage() + func (m *CHSaveReq) GetToUid() uint64 + func (m *CHSaveReq) GetUid() uint64 + func (m *CHSaveReq) Reset() + func (m *CHSaveReq) String() string + func (m *CHSaveReq) XXX_DiscardUnknown() + func (m *CHSaveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CHSaveReq) XXX_Merge(src proto.Message) + func (m *CHSaveReq) XXX_Size() int + func (m *CHSaveReq) XXX_Unmarshal(b []byte) error + type ChatClient interface + ChatHistoryList func(ctx context.Context, in *ChatHistoryReq, opts ...grpc.CallOption) (*ChatHistoryRsp, error) + ChatHistorySave func(ctx context.Context, in *CHSaveReq, opts ...grpc.CallOption) (*Rsp, error) + ChatNumber func(ctx context.Context, in *ChatNumberReq, opts ...grpc.CallOption) (*ChatNumberRsp, error) + MessageList func(ctx context.Context, in *MsgListReq, opts ...grpc.CallOption) (*MsgListRsp, error) + MessageSave func(ctx context.Context, in *MsgSaveReq, opts ...grpc.CallOption) (*Rsp, error) + func NewChatClient(cc *grpc.ClientConn) ChatClient + type ChatHistoryReq struct + Id uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatHistoryReq) Descriptor() ([]byte, []int) + func (*ChatHistoryReq) ProtoMessage() + func (m *ChatHistoryReq) GetId() uint64 + func (m *ChatHistoryReq) Reset() + func (m *ChatHistoryReq) String() string + func (m *ChatHistoryReq) XXX_DiscardUnknown() + func (m *ChatHistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatHistoryReq) XXX_Merge(src proto.Message) + func (m *ChatHistoryReq) XXX_Size() int + func (m *ChatHistoryReq) XXX_Unmarshal(b []byte) error + type ChatHistoryRsp struct + Code int64 + Message string + User []*ChatUser + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatHistoryRsp) Descriptor() ([]byte, []int) + func (*ChatHistoryRsp) ProtoMessage() + func (m *ChatHistoryRsp) GetCode() int64 + func (m *ChatHistoryRsp) GetMessage() string + func (m *ChatHistoryRsp) GetUser() []*ChatUser + func (m *ChatHistoryRsp) Reset() + func (m *ChatHistoryRsp) String() string + func (m *ChatHistoryRsp) XXX_DiscardUnknown() + func (m *ChatHistoryRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatHistoryRsp) XXX_Merge(src proto.Message) + func (m *ChatHistoryRsp) XXX_Size() int + func (m *ChatHistoryRsp) XXX_Unmarshal(b []byte) error + type ChatMessage struct + Id int64 + Message string + Status bool + ToUid uint64 + Uid uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatMessage) Descriptor() ([]byte, []int) + func (*ChatMessage) ProtoMessage() + func (m *ChatMessage) GetId() int64 + func (m *ChatMessage) GetMessage() string + func (m *ChatMessage) GetStatus() bool + func (m *ChatMessage) GetToUid() uint64 + func (m *ChatMessage) GetUid() uint64 + func (m *ChatMessage) Reset() + func (m *ChatMessage) String() string + func (m *ChatMessage) XXX_DiscardUnknown() + func (m *ChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatMessage) XXX_Merge(src proto.Message) + func (m *ChatMessage) XXX_Size() int + func (m *ChatMessage) XXX_Unmarshal(b []byte) error + type ChatNumberReq struct + Id uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatNumberReq) Descriptor() ([]byte, []int) + func (*ChatNumberReq) ProtoMessage() + func (m *ChatNumberReq) GetId() uint64 + func (m *ChatNumberReq) Reset() + func (m *ChatNumberReq) String() string + func (m *ChatNumberReq) XXX_DiscardUnknown() + func (m *ChatNumberReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatNumberReq) XXX_Merge(src proto.Message) + func (m *ChatNumberReq) XXX_Size() int + func (m *ChatNumberReq) XXX_Unmarshal(b []byte) error + type ChatNumberRsp struct + Code int64 + Message string + Number int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatNumberRsp) Descriptor() ([]byte, []int) + func (*ChatNumberRsp) ProtoMessage() + func (m *ChatNumberRsp) GetCode() int64 + func (m *ChatNumberRsp) GetMessage() string + func (m *ChatNumberRsp) GetNumber() int64 + func (m *ChatNumberRsp) Reset() + func (m *ChatNumberRsp) String() string + func (m *ChatNumberRsp) XXX_DiscardUnknown() + func (m *ChatNumberRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatNumberRsp) XXX_Merge(src proto.Message) + func (m *ChatNumberRsp) XXX_Size() int + func (m *ChatNumberRsp) XXX_Unmarshal(b []byte) error + type ChatServer interface + ChatHistoryList func(context.Context, *ChatHistoryReq) (*ChatHistoryRsp, error) + ChatHistorySave func(context.Context, *CHSaveReq) (*Rsp, error) + ChatNumber func(context.Context, *ChatNumberReq) (*ChatNumberRsp, error) + MessageList func(context.Context, *MsgListReq) (*MsgListRsp, error) + MessageSave func(context.Context, *MsgSaveReq) (*Rsp, error) + type ChatUser struct + Account string + Avatar string + Id uint64 + Name string + Status bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChatUser) Descriptor() ([]byte, []int) + func (*ChatUser) ProtoMessage() + func (m *ChatUser) GetAccount() string + func (m *ChatUser) GetAvatar() string + func (m *ChatUser) GetId() uint64 + func (m *ChatUser) GetName() string + func (m *ChatUser) GetStatus() bool + func (m *ChatUser) Reset() + func (m *ChatUser) String() string + func (m *ChatUser) XXX_DiscardUnknown() + func (m *ChatUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChatUser) XXX_Merge(src proto.Message) + func (m *ChatUser) XXX_Size() int + func (m *ChatUser) XXX_Unmarshal(b []byte) error + type MsgListReq struct + Page int64 + PageSize int64 + ToUid uint64 + Uid uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MsgListReq) Descriptor() ([]byte, []int) + func (*MsgListReq) ProtoMessage() + func (m *MsgListReq) GetPage() int64 + func (m *MsgListReq) GetPageSize() int64 + func (m *MsgListReq) GetToUid() uint64 + func (m *MsgListReq) GetUid() uint64 + func (m *MsgListReq) Reset() + func (m *MsgListReq) String() string + func (m *MsgListReq) XXX_DiscardUnknown() + func (m *MsgListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgListReq) XXX_Merge(src proto.Message) + func (m *MsgListReq) XXX_Size() int + func (m *MsgListReq) XXX_Unmarshal(b []byte) error + type MsgListRsp struct + Code int64 + Message string + Msg []*ChatMessage + Page int64 + PageSize int64 + Total int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MsgListRsp) Descriptor() ([]byte, []int) + func (*MsgListRsp) ProtoMessage() + func (m *MsgListRsp) GetCode() int64 + func (m *MsgListRsp) GetMessage() string + func (m *MsgListRsp) GetMsg() []*ChatMessage + func (m *MsgListRsp) GetPage() int64 + func (m *MsgListRsp) GetPageSize() int64 + func (m *MsgListRsp) GetTotal() int64 + func (m *MsgListRsp) Reset() + func (m *MsgListRsp) String() string + func (m *MsgListRsp) XXX_DiscardUnknown() + func (m *MsgListRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgListRsp) XXX_Merge(src proto.Message) + func (m *MsgListRsp) XXX_Size() int + func (m *MsgListRsp) XXX_Unmarshal(b []byte) error + type MsgSaveReq struct + Message string + Status bool + ToUid uint64 + Uid uint64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*MsgSaveReq) Descriptor() ([]byte, []int) + func (*MsgSaveReq) ProtoMessage() + func (m *MsgSaveReq) GetMessage() string + func (m *MsgSaveReq) GetStatus() bool + func (m *MsgSaveReq) GetToUid() uint64 + func (m *MsgSaveReq) GetUid() uint64 + func (m *MsgSaveReq) Reset() + func (m *MsgSaveReq) String() string + func (m *MsgSaveReq) XXX_DiscardUnknown() + func (m *MsgSaveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgSaveReq) XXX_Merge(src proto.Message) + func (m *MsgSaveReq) XXX_Size() int + func (m *MsgSaveReq) XXX_Unmarshal(b []byte) error + type Rsp struct + Code int64 + Message string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Rsp) Descriptor() ([]byte, []int) + func (*Rsp) ProtoMessage() + func (m *Rsp) GetCode() int64 + func (m *Rsp) GetMessage() string + func (m *Rsp) Reset() + func (m *Rsp) String() string + func (m *Rsp) XXX_DiscardUnknown() + func (m *Rsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Rsp) XXX_Merge(src proto.Message) + func (m *Rsp) XXX_Size() int + func (m *Rsp) XXX_Unmarshal(b []byte) error + type UnimplementedChatServer struct + func (*UnimplementedChatServer) ChatHistoryList(ctx context.Context, req *ChatHistoryReq) (*ChatHistoryRsp, error) + func (*UnimplementedChatServer) ChatHistorySave(ctx context.Context, req *CHSaveReq) (*Rsp, error) + func (*UnimplementedChatServer) ChatNumber(ctx context.Context, req *ChatNumberReq) (*ChatNumberRsp, error) + func (*UnimplementedChatServer) MessageList(ctx context.Context, req *MsgListReq) (*MsgListRsp, error) + func (*UnimplementedChatServer) MessageSave(ctx context.Context, req *MsgSaveReq) (*Rsp, error)