Documentation ¶
Index ¶
- func RegisterMsgServer(s *grpc.Server, srv MsgServer)
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)
- func (m *LoginReq) GetPwd() string
- func (m *LoginReq) GetUsername() string
- func (*LoginReq) ProtoMessage()
- func (m *LoginReq) Reset()
- func (m *LoginReq) String() string
- func (m *LoginReq) XXX_DiscardUnknown()
- func (m *LoginReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginReq) XXX_Merge(src proto.Message)
- func (m *LoginReq) XXX_Size() int
- func (m *LoginReq) XXX_Unmarshal(b []byte) error
- type LoginRes
- func (*LoginRes) Descriptor() ([]byte, []int)
- func (m *LoginRes) GetBody() *LoginResBody
- func (m *LoginRes) GetCode() int64
- func (m *LoginRes) GetMsg() string
- func (*LoginRes) ProtoMessage()
- func (m *LoginRes) Reset()
- func (m *LoginRes) String() string
- func (m *LoginRes) XXX_DiscardUnknown()
- func (m *LoginRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginRes) XXX_Merge(src proto.Message)
- func (m *LoginRes) XXX_Size() int
- func (m *LoginRes) XXX_Unmarshal(b []byte) error
- type LoginResBody
- func (*LoginResBody) Descriptor() ([]byte, []int)
- func (m *LoginResBody) GetUnreadCount() int64
- func (m *LoginResBody) GetUserid() string
- func (*LoginResBody) ProtoMessage()
- func (m *LoginResBody) Reset()
- func (m *LoginResBody) String() string
- func (m *LoginResBody) XXX_DiscardUnknown()
- func (m *LoginResBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LoginResBody) XXX_Merge(src proto.Message)
- func (m *LoginResBody) XXX_Size() int
- func (m *LoginResBody) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type UnReadReq
- func (*UnReadReq) Descriptor() ([]byte, []int)
- func (m *UnReadReq) GetUserid() string
- func (*UnReadReq) ProtoMessage()
- func (m *UnReadReq) Reset()
- func (m *UnReadReq) String() string
- func (m *UnReadReq) XXX_DiscardUnknown()
- func (m *UnReadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnReadReq) XXX_Merge(src proto.Message)
- func (m *UnReadReq) XXX_Size() int
- func (m *UnReadReq) XXX_Unmarshal(b []byte) error
- type UnReadRes
- func (*UnReadRes) Descriptor() ([]byte, []int)
- func (m *UnReadRes) GetBody() *UnReadResBody
- func (m *UnReadRes) GetCode() int64
- func (m *UnReadRes) GetMsg() string
- func (*UnReadRes) ProtoMessage()
- func (m *UnReadRes) Reset()
- func (m *UnReadRes) String() string
- func (m *UnReadRes) XXX_DiscardUnknown()
- func (m *UnReadRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnReadRes) XXX_Merge(src proto.Message)
- func (m *UnReadRes) XXX_Size() int
- func (m *UnReadRes) XXX_Unmarshal(b []byte) error
- type UnReadResBody
- func (*UnReadResBody) Descriptor() ([]byte, []int)
- func (m *UnReadResBody) GetCount() int64
- func (*UnReadResBody) ProtoMessage()
- func (m *UnReadResBody) Reset()
- func (m *UnReadResBody) String() string
- func (m *UnReadResBody) XXX_DiscardUnknown()
- func (m *UnReadResBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnReadResBody) XXX_Merge(src proto.Message)
- func (m *UnReadResBody) XXX_Size() int
- func (m *UnReadResBody) XXX_Unmarshal(b []byte) error
- type UserClient
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMsgServer ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type LoginReq ¶
type LoginReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Pwd string `protobuf:"bytes,2,opt,name=pwd,proto3" json:"pwd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginReq) Descriptor ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) XXX_DiscardUnknown ¶
func (m *LoginReq) XXX_DiscardUnknown()
func (*LoginReq) XXX_Marshal ¶
func (*LoginReq) XXX_Unmarshal ¶
type LoginRes ¶
type LoginRes struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Body *LoginResBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginRes) Descriptor ¶
func (*LoginRes) GetBody ¶
func (m *LoginRes) GetBody() *LoginResBody
func (*LoginRes) ProtoMessage ¶
func (*LoginRes) ProtoMessage()
func (*LoginRes) XXX_DiscardUnknown ¶
func (m *LoginRes) XXX_DiscardUnknown()
func (*LoginRes) XXX_Marshal ¶
func (*LoginRes) XXX_Unmarshal ¶
type LoginResBody ¶
type LoginResBody struct { Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` UnreadCount int64 `protobuf:"varint,2,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResBody) Descriptor ¶
func (*LoginResBody) Descriptor() ([]byte, []int)
func (*LoginResBody) GetUnreadCount ¶
func (m *LoginResBody) GetUnreadCount() int64
func (*LoginResBody) GetUserid ¶
func (m *LoginResBody) GetUserid() string
func (*LoginResBody) ProtoMessage ¶
func (*LoginResBody) ProtoMessage()
func (*LoginResBody) Reset ¶
func (m *LoginResBody) Reset()
func (*LoginResBody) String ¶
func (m *LoginResBody) String() string
func (*LoginResBody) XXX_DiscardUnknown ¶
func (m *LoginResBody) XXX_DiscardUnknown()
func (*LoginResBody) XXX_Marshal ¶
func (m *LoginResBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResBody) XXX_Merge ¶
func (dst *LoginResBody) XXX_Merge(src proto.Message)
func (*LoginResBody) XXX_Size ¶
func (m *LoginResBody) XXX_Size() int
func (*LoginResBody) XXX_Unmarshal ¶
func (m *LoginResBody) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
GetUnRead(ctx context.Context, in *UnReadReq, opts ...grpc.CallOption) (*UnReadRes, error)
}
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc *grpc.ClientConn) MsgClient
type UnReadReq ¶
type UnReadReq struct { Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnReadReq) Descriptor ¶
func (*UnReadReq) ProtoMessage ¶
func (*UnReadReq) ProtoMessage()
func (*UnReadReq) XXX_DiscardUnknown ¶
func (m *UnReadReq) XXX_DiscardUnknown()
func (*UnReadReq) XXX_Marshal ¶
func (*UnReadReq) XXX_Unmarshal ¶
type UnReadRes ¶
type UnReadRes struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Body *UnReadResBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnReadRes) Descriptor ¶
func (*UnReadRes) GetBody ¶
func (m *UnReadRes) GetBody() *UnReadResBody
func (*UnReadRes) ProtoMessage ¶
func (*UnReadRes) ProtoMessage()
func (*UnReadRes) XXX_DiscardUnknown ¶
func (m *UnReadRes) XXX_DiscardUnknown()
func (*UnReadRes) XXX_Marshal ¶
func (*UnReadRes) XXX_Unmarshal ¶
type UnReadResBody ¶
type UnReadResBody struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnReadResBody) Descriptor ¶
func (*UnReadResBody) Descriptor() ([]byte, []int)
func (*UnReadResBody) GetCount ¶
func (m *UnReadResBody) GetCount() int64
func (*UnReadResBody) ProtoMessage ¶
func (*UnReadResBody) ProtoMessage()
func (*UnReadResBody) Reset ¶
func (m *UnReadResBody) Reset()
func (*UnReadResBody) String ¶
func (m *UnReadResBody) String() string
func (*UnReadResBody) XXX_DiscardUnknown ¶
func (m *UnReadResBody) XXX_DiscardUnknown()
func (*UnReadResBody) XXX_Marshal ¶
func (m *UnReadResBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnReadResBody) XXX_Merge ¶
func (dst *UnReadResBody) XXX_Merge(src proto.Message)
func (*UnReadResBody) XXX_Size ¶
func (m *UnReadResBody) XXX_Size() int
func (*UnReadResBody) XXX_Unmarshal ¶
func (m *UnReadResBody) XXX_Unmarshal(b []byte) error
type UserClient ¶
type UserClient interface {
Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRes, error)
}
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc *grpc.ClientConn) UserClient
Click to show internal directories.
Click to hide internal directories.