Documentation ¶
Index ¶
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type Login
- func (*Login) Descriptor() ([]byte, []int)
- func (m *Login) GetAccount() string
- func (m *Login) GetPassword() string
- func (*Login) ProtoMessage()
- func (m *Login) Reset()
- func (m *Login) String() string
- func (m *Login) XXX_DiscardUnknown()
- func (m *Login) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Login) XXX_Merge(src proto.Message)
- func (m *Login) XXX_Size() int
- func (m *Login) XXX_Unmarshal(b []byte) error
- type LoginAck
- func (*LoginAck) Descriptor() ([]byte, []int)
- func (m *LoginAck) GetToken() string
- func (*LoginAck) ProtoMessage()
- func (m *LoginAck) Reset()
- func (m *LoginAck) String() string
- func (m *LoginAck) XXX_DiscardUnknown()
- func (m *LoginAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginAck) XXX_Merge(src proto.Message)
- func (m *LoginAck) XXX_Size() int
- func (m *LoginAck) XXX_Unmarshal(b []byte) error
- type UnimplementedUserServer
- type UserClient
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type Login ¶
type Login struct { Account string `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Login) Descriptor ¶
func (*Login) GetAccount ¶
func (*Login) GetPassword ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) XXX_DiscardUnknown ¶
func (m *Login) XXX_DiscardUnknown()
func (*Login) XXX_Marshal ¶
func (*Login) XXX_Unmarshal ¶
type LoginAck ¶
type LoginAck struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginAck) Descriptor ¶
func (*LoginAck) ProtoMessage ¶
func (*LoginAck) ProtoMessage()
func (*LoginAck) XXX_DiscardUnknown ¶
func (m *LoginAck) XXX_DiscardUnknown()
func (*LoginAck) XXX_Marshal ¶
func (*LoginAck) XXX_Unmarshal ¶
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServer) RpcUserLogin ¶
type UserClient ¶
type UserClient interface {
RpcUserLogin(ctx context.Context, in *Login, opts ...grpc.CallOption) (*LoginAck, 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.