Documentation ¶
Index ¶
- Variables
- func RegisterRainServiceAuthServer(s *grpc.Server, srv RainServiceAuthServer)
- func RegisterRainServiceIMServer(s *grpc.Server, srv RainServiceIMServer)
- func RegisterRainServiceUserServer(s *grpc.Server, srv RainServiceUserServer)
- type GetJwtRequest
- func (*GetJwtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJwtRequest) GetEmail() string
- func (x *GetJwtRequest) GetId() uint64
- func (x *GetJwtRequest) GetUsername() string
- func (*GetJwtRequest) ProtoMessage()
- func (x *GetJwtRequest) ProtoReflect() protoreflect.Message
- func (x *GetJwtRequest) Reset()
- func (x *GetJwtRequest) String() string
- type GetJwtResponse
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type RainServiceAuthClient
- type RainServiceAuthServer
- type RainServiceIMClient
- type RainServiceIMServer
- type RainServiceUserClient
- type RainServiceUserServer
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (x *RegisterRequest) GetVerificationCode() int64
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type SendMsgRequest
- func (*SendMsgRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMsgRequest) GetMsg() string
- func (x *SendMsgRequest) GetReceiverID() uint64
- func (x *SendMsgRequest) GetSenderID() uint64
- func (*SendMsgRequest) ProtoMessage()
- func (x *SendMsgRequest) ProtoReflect() protoreflect.Message
- func (x *SendMsgRequest) Reset()
- func (x *SendMsgRequest) String() string
- type SendMsgRequestType
- func (SendMsgRequestType) Descriptor() protoreflect.EnumDescriptor
- func (x SendMsgRequestType) Enum() *SendMsgRequestType
- func (SendMsgRequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SendMsgRequestType) Number() protoreflect.EnumNumber
- func (x SendMsgRequestType) String() string
- func (SendMsgRequestType) Type() protoreflect.EnumType
- type SendMsgResponse
- type SendVerificationCodeRequest
- func (*SendVerificationCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendVerificationCodeRequest) GetEmail() string
- func (x *SendVerificationCodeRequest) GetUsername() string
- func (*SendVerificationCodeRequest) ProtoMessage()
- func (x *SendVerificationCodeRequest) ProtoReflect() protoreflect.Message
- func (x *SendVerificationCodeRequest) Reset()
- func (x *SendVerificationCodeRequest) String() string
- type SendVerificationCodeResponse
- func (*SendVerificationCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (*SendVerificationCodeResponse) ProtoMessage()
- func (x *SendVerificationCodeResponse) ProtoReflect() protoreflect.Message
- func (x *SendVerificationCodeResponse) Reset()
- func (x *SendVerificationCodeResponse) String() string
- type UnimplementedRainServiceAuthServer
- type UnimplementedRainServiceIMServer
- type UnimplementedRainServiceUserServer
- func (*UnimplementedRainServiceUserServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (*UnimplementedRainServiceUserServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (*UnimplementedRainServiceUserServer) SendVerificationCode(context.Context, *SendVerificationCodeRequest) (*SendVerificationCodeResponse, error)
- type VerifyJwtRequest
- type VerifyJwtResponse
- func (*VerifyJwtResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyJwtResponse) GetEmail() string
- func (x *VerifyJwtResponse) GetId() uint64
- func (x *VerifyJwtResponse) GetUsername() string
- func (*VerifyJwtResponse) ProtoMessage()
- func (x *VerifyJwtResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyJwtResponse) Reset()
- func (x *VerifyJwtResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( SendMsgRequestType_name = map[int32]string{ 0: "CHAT_MSG", 1: "TREND_MSG", } SendMsgRequestType_value = map[string]int32{ "CHAT_MSG": 0, "TREND_MSG": 1, } )
Enum value maps for SendMsgRequestType.
var File_proto_rain_service_auth_proto protoreflect.FileDescriptor
var File_proto_rain_service_im_proto protoreflect.FileDescriptor
var File_proto_rain_service_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRainServiceAuthServer ¶
func RegisterRainServiceAuthServer(s *grpc.Server, srv RainServiceAuthServer)
func RegisterRainServiceIMServer ¶
func RegisterRainServiceIMServer(s *grpc.Server, srv RainServiceIMServer)
func RegisterRainServiceUserServer ¶
func RegisterRainServiceUserServer(s *grpc.Server, srv RainServiceUserServer)
Types ¶
type GetJwtRequest ¶
type GetJwtRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetJwtRequest) Descriptor
deprecated
func (*GetJwtRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJwtRequest.ProtoReflect.Descriptor instead.
func (*GetJwtRequest) GetEmail ¶
func (x *GetJwtRequest) GetEmail() string
func (*GetJwtRequest) GetId ¶
func (x *GetJwtRequest) GetId() uint64
func (*GetJwtRequest) GetUsername ¶
func (x *GetJwtRequest) GetUsername() string
func (*GetJwtRequest) ProtoMessage ¶
func (*GetJwtRequest) ProtoMessage()
func (*GetJwtRequest) ProtoReflect ¶
func (x *GetJwtRequest) ProtoReflect() protoreflect.Message
func (*GetJwtRequest) Reset ¶
func (x *GetJwtRequest) Reset()
func (*GetJwtRequest) String ¶
func (x *GetJwtRequest) String() string
type GetJwtResponse ¶
type GetJwtResponse struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*GetJwtResponse) Descriptor
deprecated
func (*GetJwtResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJwtResponse.ProtoReflect.Descriptor instead.
func (*GetJwtResponse) GetJwt ¶
func (x *GetJwtResponse) GetJwt() string
func (*GetJwtResponse) ProtoMessage ¶
func (*GetJwtResponse) ProtoMessage()
func (*GetJwtResponse) ProtoReflect ¶
func (x *GetJwtResponse) ProtoReflect() protoreflect.Message
func (*GetJwtResponse) Reset ¶
func (x *GetJwtResponse) Reset()
func (*GetJwtResponse) String ¶
func (x *GetJwtResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetJwt ¶
func (x *LoginResponse) GetJwt() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type RainServiceAuthClient ¶
type RainServiceAuthClient interface { GetJwt(ctx context.Context, in *GetJwtRequest, opts ...grpc.CallOption) (*GetJwtResponse, error) VerifyJwt(ctx context.Context, in *VerifyJwtRequest, opts ...grpc.CallOption) (*VerifyJwtResponse, error) }
RainServiceAuthClient is the client API for RainServiceAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRainServiceAuthClient ¶
func NewRainServiceAuthClient(cc grpc.ClientConnInterface) RainServiceAuthClient
type RainServiceAuthServer ¶
type RainServiceAuthServer interface { GetJwt(context.Context, *GetJwtRequest) (*GetJwtResponse, error) VerifyJwt(context.Context, *VerifyJwtRequest) (*VerifyJwtResponse, error) }
RainServiceAuthServer is the server API for RainServiceAuth service.
type RainServiceIMClient ¶
type RainServiceIMClient interface {
SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgResponse, error)
}
RainServiceIMClient is the client API for RainServiceIM service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRainServiceIMClient ¶
func NewRainServiceIMClient(cc grpc.ClientConnInterface) RainServiceIMClient
type RainServiceIMServer ¶
type RainServiceIMServer interface {
SendMsg(context.Context, *SendMsgRequest) (*SendMsgResponse, error)
}
RainServiceIMServer is the server API for RainServiceIM service.
type RainServiceUserClient ¶
type RainServiceUserClient interface { SendVerificationCode(ctx context.Context, in *SendVerificationCodeRequest, opts ...grpc.CallOption) (*SendVerificationCodeResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) }
RainServiceUserClient is the client API for RainServiceUser service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRainServiceUserClient ¶
func NewRainServiceUserClient(cc grpc.ClientConnInterface) RainServiceUserClient
type RainServiceUserServer ¶
type RainServiceUserServer interface { SendVerificationCode(context.Context, *SendVerificationCodeRequest) (*SendVerificationCodeResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) }
RainServiceUserServer is the server API for RainServiceUser service.
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` VerificationCode int64 `protobuf:"varint,4,opt,name=verificationCode,proto3" json:"verificationCode,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) GetVerificationCode ¶
func (x *RegisterRequest) GetVerificationCode() int64
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct {
// contains filtered or unexported fields
}
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type SendMsgRequest ¶
type SendMsgRequest struct { SenderID uint64 `protobuf:"varint,1,opt,name=SenderID,proto3" json:"SenderID,omitempty"` ReceiverID uint64 `protobuf:"varint,2,opt,name=ReceiverID,proto3" json:"ReceiverID,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*SendMsgRequest) Descriptor
deprecated
func (*SendMsgRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
func (*SendMsgRequest) GetMsg ¶
func (x *SendMsgRequest) GetMsg() string
func (*SendMsgRequest) GetReceiverID ¶
func (x *SendMsgRequest) GetReceiverID() uint64
func (*SendMsgRequest) GetSenderID ¶
func (x *SendMsgRequest) GetSenderID() uint64
func (*SendMsgRequest) ProtoMessage ¶
func (*SendMsgRequest) ProtoMessage()
func (*SendMsgRequest) ProtoReflect ¶
func (x *SendMsgRequest) ProtoReflect() protoreflect.Message
func (*SendMsgRequest) Reset ¶
func (x *SendMsgRequest) Reset()
func (*SendMsgRequest) String ¶
func (x *SendMsgRequest) String() string
type SendMsgRequestType ¶
type SendMsgRequestType int32
const ( SendMsgRequest_CHAT_MSG SendMsgRequestType = 0 SendMsgRequest_TREND_MSG SendMsgRequestType = 1 )
func (SendMsgRequestType) Descriptor ¶
func (SendMsgRequestType) Descriptor() protoreflect.EnumDescriptor
func (SendMsgRequestType) Enum ¶
func (x SendMsgRequestType) Enum() *SendMsgRequestType
func (SendMsgRequestType) EnumDescriptor
deprecated
func (SendMsgRequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SendMsgRequestType.Descriptor instead.
func (SendMsgRequestType) Number ¶
func (x SendMsgRequestType) Number() protoreflect.EnumNumber
func (SendMsgRequestType) String ¶
func (x SendMsgRequestType) String() string
func (SendMsgRequestType) Type ¶
func (SendMsgRequestType) Type() protoreflect.EnumType
type SendMsgResponse ¶
type SendMsgResponse struct {
// contains filtered or unexported fields
}
func (*SendMsgResponse) Descriptor
deprecated
func (*SendMsgResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMsgResponse.ProtoReflect.Descriptor instead.
func (*SendMsgResponse) ProtoMessage ¶
func (*SendMsgResponse) ProtoMessage()
func (*SendMsgResponse) ProtoReflect ¶
func (x *SendMsgResponse) ProtoReflect() protoreflect.Message
func (*SendMsgResponse) Reset ¶
func (x *SendMsgResponse) Reset()
func (*SendMsgResponse) String ¶
func (x *SendMsgResponse) String() string
type SendVerificationCodeRequest ¶
type SendVerificationCodeRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*SendVerificationCodeRequest) Descriptor
deprecated
func (*SendVerificationCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendVerificationCodeRequest.ProtoReflect.Descriptor instead.
func (*SendVerificationCodeRequest) GetEmail ¶
func (x *SendVerificationCodeRequest) GetEmail() string
func (*SendVerificationCodeRequest) GetUsername ¶
func (x *SendVerificationCodeRequest) GetUsername() string
func (*SendVerificationCodeRequest) ProtoMessage ¶
func (*SendVerificationCodeRequest) ProtoMessage()
func (*SendVerificationCodeRequest) ProtoReflect ¶
func (x *SendVerificationCodeRequest) ProtoReflect() protoreflect.Message
func (*SendVerificationCodeRequest) Reset ¶
func (x *SendVerificationCodeRequest) Reset()
func (*SendVerificationCodeRequest) String ¶
func (x *SendVerificationCodeRequest) String() string
type SendVerificationCodeResponse ¶
type SendVerificationCodeResponse struct {
// contains filtered or unexported fields
}
func (*SendVerificationCodeResponse) Descriptor
deprecated
func (*SendVerificationCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendVerificationCodeResponse.ProtoReflect.Descriptor instead.
func (*SendVerificationCodeResponse) ProtoMessage ¶
func (*SendVerificationCodeResponse) ProtoMessage()
func (*SendVerificationCodeResponse) ProtoReflect ¶
func (x *SendVerificationCodeResponse) ProtoReflect() protoreflect.Message
func (*SendVerificationCodeResponse) Reset ¶
func (x *SendVerificationCodeResponse) Reset()
func (*SendVerificationCodeResponse) String ¶
func (x *SendVerificationCodeResponse) String() string
type UnimplementedRainServiceAuthServer ¶
type UnimplementedRainServiceAuthServer struct { }
UnimplementedRainServiceAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedRainServiceAuthServer) GetJwt ¶
func (*UnimplementedRainServiceAuthServer) GetJwt(context.Context, *GetJwtRequest) (*GetJwtResponse, error)
func (*UnimplementedRainServiceAuthServer) VerifyJwt ¶
func (*UnimplementedRainServiceAuthServer) VerifyJwt(context.Context, *VerifyJwtRequest) (*VerifyJwtResponse, error)
type UnimplementedRainServiceIMServer ¶
type UnimplementedRainServiceIMServer struct { }
UnimplementedRainServiceIMServer can be embedded to have forward compatible implementations.
func (*UnimplementedRainServiceIMServer) SendMsg ¶
func (*UnimplementedRainServiceIMServer) SendMsg(context.Context, *SendMsgRequest) (*SendMsgResponse, error)
type UnimplementedRainServiceUserServer ¶
type UnimplementedRainServiceUserServer struct { }
UnimplementedRainServiceUserServer can be embedded to have forward compatible implementations.
func (*UnimplementedRainServiceUserServer) Login ¶
func (*UnimplementedRainServiceUserServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (*UnimplementedRainServiceUserServer) Register ¶
func (*UnimplementedRainServiceUserServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (*UnimplementedRainServiceUserServer) SendVerificationCode ¶
func (*UnimplementedRainServiceUserServer) SendVerificationCode(context.Context, *SendVerificationCodeRequest) (*SendVerificationCodeResponse, error)
type VerifyJwtRequest ¶
type VerifyJwtRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*VerifyJwtRequest) Descriptor
deprecated
func (*VerifyJwtRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyJwtRequest.ProtoReflect.Descriptor instead.
func (*VerifyJwtRequest) GetToken ¶
func (x *VerifyJwtRequest) GetToken() string
func (*VerifyJwtRequest) ProtoMessage ¶
func (*VerifyJwtRequest) ProtoMessage()
func (*VerifyJwtRequest) ProtoReflect ¶
func (x *VerifyJwtRequest) ProtoReflect() protoreflect.Message
func (*VerifyJwtRequest) Reset ¶
func (x *VerifyJwtRequest) Reset()
func (*VerifyJwtRequest) String ¶
func (x *VerifyJwtRequest) String() string
type VerifyJwtResponse ¶
type VerifyJwtResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*VerifyJwtResponse) Descriptor
deprecated
func (*VerifyJwtResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyJwtResponse.ProtoReflect.Descriptor instead.
func (*VerifyJwtResponse) GetEmail ¶
func (x *VerifyJwtResponse) GetEmail() string
func (*VerifyJwtResponse) GetId ¶
func (x *VerifyJwtResponse) GetId() uint64
func (*VerifyJwtResponse) GetUsername ¶
func (x *VerifyJwtResponse) GetUsername() string
func (*VerifyJwtResponse) ProtoMessage ¶
func (*VerifyJwtResponse) ProtoMessage()
func (*VerifyJwtResponse) ProtoReflect ¶
func (x *VerifyJwtResponse) ProtoReflect() protoreflect.Message
func (*VerifyJwtResponse) Reset ¶
func (x *VerifyJwtResponse) Reset()
func (*VerifyJwtResponse) String ¶
func (x *VerifyJwtResponse) String() string