Documentation ¶
Index ¶
- Variables
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountServer
- type SendVerifyCodeReq
- func (*SendVerifyCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendVerifyCodeReq) GetAuthType() string
- func (x *SendVerifyCodeReq) GetAuthValue() string
- func (*SendVerifyCodeReq) ProtoMessage()
- func (x *SendVerifyCodeReq) ProtoReflect() protoreflect.Message
- func (x *SendVerifyCodeReq) Reset()
- func (x *SendVerifyCodeReq) String() string
- type SendVerifyCodeResp
- type SetPasswordReq
- func (*SetPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetPasswordReq) GetPassword() string
- func (x *SetPasswordReq) GetUserId() string
- func (*SetPasswordReq) ProtoMessage()
- func (x *SetPasswordReq) ProtoReflect() protoreflect.Message
- func (x *SetPasswordReq) Reset()
- func (x *SetPasswordReq) String() string
- type SetPasswordResp
- type SignInReq
- func (*SignInReq) Descriptor() ([]byte, []int)deprecated
- func (x *SignInReq) GetAuthId() string
- func (x *SignInReq) GetAuthType() string
- func (x *SignInReq) GetParams() []string
- func (x *SignInReq) GetPassword() string
- func (*SignInReq) ProtoMessage()
- func (x *SignInReq) ProtoReflect() protoreflect.Message
- func (x *SignInReq) Reset()
- func (x *SignInReq) String() string
- type SignInResp
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error)
- func (UnimplementedAccountServer) SetPassword(context.Context, *SetPasswordReq) (*SetPasswordResp, error)
- func (UnimplementedAccountServer) SignIn(context.Context, *SignInReq) (*SignInResp, error)
- type UnsafeAccountServer
Constants ¶
This section is empty.
Variables ¶
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "signIn", Handler: _Account_SignIn_Handler, }, { MethodName: "setPassword", Handler: _Account_SetPassword_Handler, }, { MethodName: "sendVerifyCode", Handler: _Account_SendVerifyCode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) SetPassword(ctx context.Context, in *SetPasswordReq, opts ...grpc.CallOption) (*SetPasswordResp, error) SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface { SignIn(context.Context, *SignInReq) (*SignInResp, error) SetPassword(context.Context, *SetPasswordReq) (*SetPasswordResp, error) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility
type SendVerifyCodeReq ¶
type SendVerifyCodeReq struct { AuthType string `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"` AuthValue string `protobuf:"bytes,2,opt,name=authValue,proto3" json:"authValue,omitempty"` // contains filtered or unexported fields }
func (*SendVerifyCodeReq) Descriptor
deprecated
func (*SendVerifyCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use SendVerifyCodeReq.ProtoReflect.Descriptor instead.
func (*SendVerifyCodeReq) GetAuthType ¶
func (x *SendVerifyCodeReq) GetAuthType() string
func (*SendVerifyCodeReq) GetAuthValue ¶
func (x *SendVerifyCodeReq) GetAuthValue() string
func (*SendVerifyCodeReq) ProtoMessage ¶
func (*SendVerifyCodeReq) ProtoMessage()
func (*SendVerifyCodeReq) ProtoReflect ¶
func (x *SendVerifyCodeReq) ProtoReflect() protoreflect.Message
func (*SendVerifyCodeReq) Reset ¶
func (x *SendVerifyCodeReq) Reset()
func (*SendVerifyCodeReq) String ¶
func (x *SendVerifyCodeReq) String() string
type SendVerifyCodeResp ¶
type SendVerifyCodeResp struct {
// contains filtered or unexported fields
}
func (*SendVerifyCodeResp) Descriptor
deprecated
func (*SendVerifyCodeResp) Descriptor() ([]byte, []int)
Deprecated: Use SendVerifyCodeResp.ProtoReflect.Descriptor instead.
func (*SendVerifyCodeResp) ProtoMessage ¶
func (*SendVerifyCodeResp) ProtoMessage()
func (*SendVerifyCodeResp) ProtoReflect ¶
func (x *SendVerifyCodeResp) ProtoReflect() protoreflect.Message
func (*SendVerifyCodeResp) Reset ¶
func (x *SendVerifyCodeResp) Reset()
func (*SendVerifyCodeResp) String ¶
func (x *SendVerifyCodeResp) String() string
type SetPasswordReq ¶
type SetPasswordReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SetPasswordReq) Descriptor
deprecated
func (*SetPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use SetPasswordReq.ProtoReflect.Descriptor instead.
func (*SetPasswordReq) GetPassword ¶
func (x *SetPasswordReq) GetPassword() string
func (*SetPasswordReq) GetUserId ¶
func (x *SetPasswordReq) GetUserId() string
func (*SetPasswordReq) ProtoMessage ¶
func (*SetPasswordReq) ProtoMessage()
func (*SetPasswordReq) ProtoReflect ¶
func (x *SetPasswordReq) ProtoReflect() protoreflect.Message
func (*SetPasswordReq) Reset ¶
func (x *SetPasswordReq) Reset()
func (*SetPasswordReq) String ¶
func (x *SetPasswordReq) String() string
type SetPasswordResp ¶
type SetPasswordResp struct {
// contains filtered or unexported fields
}
func (*SetPasswordResp) Descriptor
deprecated
func (*SetPasswordResp) Descriptor() ([]byte, []int)
Deprecated: Use SetPasswordResp.ProtoReflect.Descriptor instead.
func (*SetPasswordResp) ProtoMessage ¶
func (*SetPasswordResp) ProtoMessage()
func (*SetPasswordResp) ProtoReflect ¶
func (x *SetPasswordResp) ProtoReflect() protoreflect.Message
func (*SetPasswordResp) Reset ¶
func (x *SetPasswordResp) Reset()
func (*SetPasswordResp) String ¶
func (x *SetPasswordResp) String() string
type SignInReq ¶
type SignInReq struct { AuthType string `protobuf:"bytes,1,opt,name=authType,proto3" json:"authType,omitempty"` AuthId string `protobuf:"bytes,2,opt,name=authId,proto3" json:"authId,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Params []string `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*SignInReq) Descriptor
deprecated
func (*SignInReq) GetAuthType ¶
func (*SignInReq) GetPassword ¶
func (*SignInReq) ProtoMessage ¶
func (*SignInReq) ProtoMessage()
func (*SignInReq) ProtoReflect ¶
func (x *SignInReq) ProtoReflect() protoreflect.Message
type SignInResp ¶
type SignInResp struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*SignInResp) Descriptor
deprecated
func (*SignInResp) Descriptor() ([]byte, []int)
Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
func (*SignInResp) GetUserId ¶
func (x *SignInResp) GetUserId() string
func (*SignInResp) ProtoMessage ¶
func (*SignInResp) ProtoMessage()
func (*SignInResp) ProtoReflect ¶
func (x *SignInResp) ProtoReflect() protoreflect.Message
func (*SignInResp) Reset ¶
func (x *SignInResp) Reset()
func (*SignInResp) String ¶
func (x *SignInResp) String() string
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) SendVerifyCode ¶
func (UnimplementedAccountServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error)
func (UnimplementedAccountServer) SetPassword ¶
func (UnimplementedAccountServer) SetPassword(context.Context, *SetPasswordReq) (*SetPasswordResp, error)
func (UnimplementedAccountServer) SignIn ¶
func (UnimplementedAccountServer) SignIn(context.Context, *SignInReq) (*SignInResp, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.