rain_service

package
v0.0.0-...-fb2315c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_proto_rain_service_auth_proto protoreflect.FileDescriptor
View Source
var File_proto_rain_service_im_proto protoreflect.FileDescriptor
View Source
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.

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.

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.

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) Enum

func (SendMsgRequestType) EnumDescriptor deprecated

func (SendMsgRequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SendMsgRequestType.Descriptor instead.

func (SendMsgRequestType) Number

func (SendMsgRequestType) String

func (x SendMsgRequestType) String() string

func (SendMsgRequestType) Type

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 (*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 (*SendVerificationCodeResponse) Reset

func (x *SendVerificationCodeResponse) Reset()

func (*SendVerificationCodeResponse) String

type UnimplementedRainServiceAuthServer

type UnimplementedRainServiceAuthServer struct {
}

UnimplementedRainServiceAuthServer can be embedded to have forward compatible implementations.

func (*UnimplementedRainServiceAuthServer) GetJwt

func (*UnimplementedRainServiceAuthServer) VerifyJwt

type UnimplementedRainServiceIMServer

type UnimplementedRainServiceIMServer struct {
}

UnimplementedRainServiceIMServer can be embedded to have forward compatible implementations.

func (*UnimplementedRainServiceIMServer) SendMsg

type UnimplementedRainServiceUserServer

type UnimplementedRainServiceUserServer struct {
}

UnimplementedRainServiceUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedRainServiceUserServer) Login

func (*UnimplementedRainServiceUserServer) Register

func (*UnimplementedRainServiceUserServer) SendVerificationCode

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL