Documentation ¶
Index ¶
- Variables
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type GetDesignateUsersReq
- func (*GetDesignateUsersReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDesignateUsersReq) GetUserIDs() []string
- func (*GetDesignateUsersReq) ProtoMessage()
- func (x *GetDesignateUsersReq) ProtoReflect() protoreflect.Message
- func (x *GetDesignateUsersReq) Reset()
- func (x *GetDesignateUsersReq) String() string
- type GetDesignateUsersResp
- func (*GetDesignateUsersResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetDesignateUsersResp) GetUsersInfo() []*UserInfo
- func (*GetDesignateUsersResp) ProtoMessage()
- func (x *GetDesignateUsersResp) ProtoReflect() protoreflect.Message
- func (x *GetDesignateUsersResp) Reset()
- func (x *GetDesignateUsersResp) String() string
- type GetUserInfoReq
- type GetUserInfoResp
- func (*GetUserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoResp) GetAccount() string
- func (x *GetUserInfoResp) GetNickname() string
- func (x *GetUserInfoResp) GetUserID() string
- func (*GetUserInfoResp) ProtoMessage()
- func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoResp) Reset()
- func (x *GetUserInfoResp) String() string
- type GetUserTokenReq
- type GetUserTokenResp
- type UnimplementedUserServer
- func (*UnimplementedUserServer) GetDesignateUsers(context.Context, *GetDesignateUsersReq) (*GetDesignateUsersResp, error)
- func (*UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
- func (*UnimplementedUserServer) GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error)
- func (*UnimplementedUserServer) UserLogin(context.Context, *UserLoginReq) (*UserLoginResp, error)
- func (*UnimplementedUserServer) UserRegister(context.Context, *UserRegisterReq) (*UserRegisterResp, error)
- type UserClient
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetAccount() string
- func (x *UserInfo) GetNickname() string
- func (x *UserInfo) GetPassword() string
- func (x *UserInfo) GetUserID() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserLoginReq
- func (*UserLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReq) GetAccount() string
- func (x *UserLoginReq) GetAreaCode() string
- func (x *UserLoginReq) GetDeviceID() string
- func (x *UserLoginReq) GetEmail() string
- func (x *UserLoginReq) GetPassword() string
- func (x *UserLoginReq) GetPhoneNumber() string
- func (x *UserLoginReq) GetPlatform() int32
- func (x *UserLoginReq) GetVerifyCode() string
- func (*UserLoginReq) ProtoMessage()
- func (x *UserLoginReq) ProtoReflect() protoreflect.Message
- func (x *UserLoginReq) Reset()
- func (x *UserLoginReq) String() string
- type UserLoginResp
- func (*UserLoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginResp) GetNickname() string
- func (x *UserLoginResp) GetToken() string
- func (x *UserLoginResp) GetUserID() string
- func (*UserLoginResp) ProtoMessage()
- func (x *UserLoginResp) ProtoReflect() protoreflect.Message
- func (x *UserLoginResp) Reset()
- func (x *UserLoginResp) String() string
- type UserRegisterReq
- type UserRegisterResp
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_openmeeting_user_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type GetDesignateUsersReq ¶
type GetDesignateUsersReq struct { UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` // contains filtered or unexported fields }
func (*GetDesignateUsersReq) Descriptor
deprecated
func (*GetDesignateUsersReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDesignateUsersReq.ProtoReflect.Descriptor instead.
func (*GetDesignateUsersReq) GetUserIDs ¶
func (x *GetDesignateUsersReq) GetUserIDs() []string
func (*GetDesignateUsersReq) ProtoMessage ¶
func (*GetDesignateUsersReq) ProtoMessage()
func (*GetDesignateUsersReq) ProtoReflect ¶
func (x *GetDesignateUsersReq) ProtoReflect() protoreflect.Message
func (*GetDesignateUsersReq) Reset ¶
func (x *GetDesignateUsersReq) Reset()
func (*GetDesignateUsersReq) String ¶
func (x *GetDesignateUsersReq) String() string
type GetDesignateUsersResp ¶
type GetDesignateUsersResp struct { UsersInfo []*UserInfo `protobuf:"bytes,1,rep,name=usersInfo,proto3" json:"usersInfo"` // contains filtered or unexported fields }
func (*GetDesignateUsersResp) Descriptor
deprecated
func (*GetDesignateUsersResp) Descriptor() ([]byte, []int)
Deprecated: Use GetDesignateUsersResp.ProtoReflect.Descriptor instead.
func (*GetDesignateUsersResp) GetUsersInfo ¶
func (x *GetDesignateUsersResp) GetUsersInfo() []*UserInfo
func (*GetDesignateUsersResp) ProtoMessage ¶
func (*GetDesignateUsersResp) ProtoMessage()
func (*GetDesignateUsersResp) ProtoReflect ¶
func (x *GetDesignateUsersResp) ProtoReflect() protoreflect.Message
func (*GetDesignateUsersResp) Reset ¶
func (x *GetDesignateUsersResp) Reset()
func (*GetDesignateUsersResp) String ¶
func (x *GetDesignateUsersResp) String() string
type GetUserInfoReq ¶
type GetUserInfoReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` // contains filtered or unexported fields }
func (*GetUserInfoReq) Descriptor
deprecated
func (*GetUserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoReq.ProtoReflect.Descriptor instead.
func (*GetUserInfoReq) GetUserID ¶
func (x *GetUserInfoReq) GetUserID() string
func (*GetUserInfoReq) ProtoMessage ¶
func (*GetUserInfoReq) ProtoMessage()
func (*GetUserInfoReq) ProtoReflect ¶
func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message
func (*GetUserInfoReq) Reset ¶
func (x *GetUserInfoReq) Reset()
func (*GetUserInfoReq) String ¶
func (x *GetUserInfoReq) String() string
type GetUserInfoResp ¶
type GetUserInfoResp struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account"` // contains filtered or unexported fields }
func (*GetUserInfoResp) Descriptor
deprecated
func (*GetUserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoResp.ProtoReflect.Descriptor instead.
func (*GetUserInfoResp) GetAccount ¶
func (x *GetUserInfoResp) GetAccount() string
func (*GetUserInfoResp) GetNickname ¶
func (x *GetUserInfoResp) GetNickname() string
func (*GetUserInfoResp) GetUserID ¶
func (x *GetUserInfoResp) GetUserID() string
func (*GetUserInfoResp) ProtoMessage ¶
func (*GetUserInfoResp) ProtoMessage()
func (*GetUserInfoResp) ProtoReflect ¶
func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message
func (*GetUserInfoResp) Reset ¶
func (x *GetUserInfoResp) Reset()
func (*GetUserInfoResp) String ¶
func (x *GetUserInfoResp) String() string
type GetUserTokenReq ¶
type GetUserTokenReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` // contains filtered or unexported fields }
func (*GetUserTokenReq) Descriptor
deprecated
func (*GetUserTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTokenReq.ProtoReflect.Descriptor instead.
func (*GetUserTokenReq) GetUserID ¶
func (x *GetUserTokenReq) GetUserID() string
func (*GetUserTokenReq) ProtoMessage ¶
func (*GetUserTokenReq) ProtoMessage()
func (*GetUserTokenReq) ProtoReflect ¶
func (x *GetUserTokenReq) ProtoReflect() protoreflect.Message
func (*GetUserTokenReq) Reset ¶
func (x *GetUserTokenReq) Reset()
func (*GetUserTokenReq) String ¶
func (x *GetUserTokenReq) String() string
type GetUserTokenResp ¶
type GetUserTokenResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` // contains filtered or unexported fields }
func (*GetUserTokenResp) Descriptor
deprecated
func (*GetUserTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTokenResp.ProtoReflect.Descriptor instead.
func (*GetUserTokenResp) GetToken ¶
func (x *GetUserTokenResp) GetToken() string
func (*GetUserTokenResp) ProtoMessage ¶
func (*GetUserTokenResp) ProtoMessage()
func (*GetUserTokenResp) ProtoReflect ¶
func (x *GetUserTokenResp) ProtoReflect() protoreflect.Message
func (*GetUserTokenResp) Reset ¶
func (x *GetUserTokenResp) Reset()
func (*GetUserTokenResp) String ¶
func (x *GetUserTokenResp) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServer) GetDesignateUsers ¶
func (*UnimplementedUserServer) GetDesignateUsers(context.Context, *GetDesignateUsersReq) (*GetDesignateUsersResp, error)
func (*UnimplementedUserServer) GetUserInfo ¶
func (*UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
func (*UnimplementedUserServer) GetUserToken ¶
func (*UnimplementedUserServer) GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error)
func (*UnimplementedUserServer) UserLogin ¶
func (*UnimplementedUserServer) UserLogin(context.Context, *UserLoginReq) (*UserLoginResp, error)
func (*UnimplementedUserServer) UserRegister ¶
func (*UnimplementedUserServer) UserRegister(context.Context, *UserRegisterReq) (*UserRegisterResp, error)
type UserClient ¶
type UserClient interface { // Get the specified user information full field GetDesignateUsers(ctx context.Context, in *GetDesignateUsersReq, opts ...grpc.CallOption) (*GetDesignateUsersResp, error) // user registration UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterResp, error) // user login UserLogin(ctx context.Context, in *UserLoginReq, opts ...grpc.CallOption) (*UserLoginResp, error) // get user token GetUserToken(ctx context.Context, in *GetUserTokenReq, opts ...grpc.CallOption) (*GetUserTokenResp, error) // get user info GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, 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.ClientConnInterface) UserClient
type UserInfo ¶
type UserInfo struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetAccount ¶
func (*UserInfo) GetNickname ¶
func (*UserInfo) GetPassword ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserLoginReq ¶
type UserLoginReq struct { AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password"` Platform int32 `protobuf:"varint,6,opt,name=platform,proto3" json:"platform"` DeviceID string `protobuf:"bytes,7,opt,name=deviceID,proto3" json:"deviceID"` Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email"` // contains filtered or unexported fields }
func (*UserLoginReq) Descriptor
deprecated
func (*UserLoginReq) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead.
func (*UserLoginReq) GetAccount ¶
func (x *UserLoginReq) GetAccount() string
func (*UserLoginReq) GetAreaCode ¶
func (x *UserLoginReq) GetAreaCode() string
func (*UserLoginReq) GetDeviceID ¶
func (x *UserLoginReq) GetDeviceID() string
func (*UserLoginReq) GetEmail ¶
func (x *UserLoginReq) GetEmail() string
func (*UserLoginReq) GetPassword ¶
func (x *UserLoginReq) GetPassword() string
func (*UserLoginReq) GetPhoneNumber ¶
func (x *UserLoginReq) GetPhoneNumber() string
func (*UserLoginReq) GetPlatform ¶
func (x *UserLoginReq) GetPlatform() int32
func (*UserLoginReq) GetVerifyCode ¶
func (x *UserLoginReq) GetVerifyCode() string
func (*UserLoginReq) ProtoMessage ¶
func (*UserLoginReq) ProtoMessage()
func (*UserLoginReq) ProtoReflect ¶
func (x *UserLoginReq) ProtoReflect() protoreflect.Message
func (*UserLoginReq) Reset ¶
func (x *UserLoginReq) Reset()
func (*UserLoginReq) String ¶
func (x *UserLoginReq) String() string
type UserLoginResp ¶
type UserLoginResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID"` // contains filtered or unexported fields }
func (*UserLoginResp) Descriptor
deprecated
func (*UserLoginResp) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginResp.ProtoReflect.Descriptor instead.
func (*UserLoginResp) GetNickname ¶
func (x *UserLoginResp) GetNickname() string
func (*UserLoginResp) GetToken ¶
func (x *UserLoginResp) GetToken() string
func (*UserLoginResp) GetUserID ¶
func (x *UserLoginResp) GetUserID() string
func (*UserLoginResp) ProtoMessage ¶
func (*UserLoginResp) ProtoMessage()
func (*UserLoginResp) ProtoReflect ¶
func (x *UserLoginResp) ProtoReflect() protoreflect.Message
func (*UserLoginResp) Reset ¶
func (x *UserLoginResp) Reset()
func (*UserLoginResp) String ¶
func (x *UserLoginResp) String() string
type UserRegisterReq ¶
type UserRegisterReq struct { Users []*UserInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` // contains filtered or unexported fields }
func (*UserRegisterReq) Descriptor
deprecated
func (*UserRegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.
func (*UserRegisterReq) GetUsers ¶
func (x *UserRegisterReq) GetUsers() []*UserInfo
func (*UserRegisterReq) ProtoMessage ¶
func (*UserRegisterReq) ProtoMessage()
func (*UserRegisterReq) ProtoReflect ¶
func (x *UserRegisterReq) ProtoReflect() protoreflect.Message
func (*UserRegisterReq) Reset ¶
func (x *UserRegisterReq) Reset()
func (*UserRegisterReq) String ¶
func (x *UserRegisterReq) String() string
type UserRegisterResp ¶
type UserRegisterResp struct {
// contains filtered or unexported fields
}
func (*UserRegisterResp) Descriptor
deprecated
func (*UserRegisterResp) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterResp.ProtoReflect.Descriptor instead.
func (*UserRegisterResp) ProtoMessage ¶
func (*UserRegisterResp) ProtoMessage()
func (*UserRegisterResp) ProtoReflect ¶
func (x *UserRegisterResp) ProtoReflect() protoreflect.Message
func (*UserRegisterResp) Reset ¶
func (x *UserRegisterResp) Reset()
func (*UserRegisterResp) String ¶
func (x *UserRegisterResp) String() string
type UserServer ¶
type UserServer interface { // Get the specified user information full field GetDesignateUsers(context.Context, *GetDesignateUsersReq) (*GetDesignateUsersResp, error) // user registration UserRegister(context.Context, *UserRegisterReq) (*UserRegisterResp, error) // user login UserLogin(context.Context, *UserLoginReq) (*UserLoginResp, error) // get user token GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error) // get user info GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) }
UserServer is the server API for User service.