login

package
v0.0.0-...-c807cde Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_login_service_proto protoreflect.FileDescriptor
View Source
var LoginService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "login.service.v1.LoginService",
	HandlerType: (*LoginServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCaptcha",
			Handler:    _LoginService_GetCaptcha_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _LoginService_Register_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "login_service.proto",
}

LoginService_ServiceDesc is the grpc.ServiceDesc for LoginService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLoginServiceServer

func RegisterLoginServiceServer(s grpc.ServiceRegistrar, srv LoginServiceServer)

Types

type CaptchaReq

type CaptchaReq struct {
	Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaReq) Descriptor deprecated

func (*CaptchaReq) Descriptor() ([]byte, []int)

Deprecated: Use CaptchaReq.ProtoReflect.Descriptor instead.

func (*CaptchaReq) GetMobile

func (x *CaptchaReq) GetMobile() string

func (*CaptchaReq) ProtoMessage

func (*CaptchaReq) ProtoMessage()

func (*CaptchaReq) ProtoReflect

func (x *CaptchaReq) ProtoReflect() protoreflect.Message

func (*CaptchaReq) Reset

func (x *CaptchaReq) Reset()

func (*CaptchaReq) String

func (x *CaptchaReq) String() string

type CaptchaResp

type CaptchaResp struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*CaptchaResp) Descriptor deprecated

func (*CaptchaResp) Descriptor() ([]byte, []int)

Deprecated: Use CaptchaResp.ProtoReflect.Descriptor instead.

func (*CaptchaResp) GetCode

func (x *CaptchaResp) GetCode() string

func (*CaptchaResp) ProtoMessage

func (*CaptchaResp) ProtoMessage()

func (*CaptchaResp) ProtoReflect

func (x *CaptchaResp) ProtoReflect() protoreflect.Message

func (*CaptchaResp) Reset

func (x *CaptchaResp) Reset()

func (*CaptchaResp) String

func (x *CaptchaResp) String() string

type LoginServiceClient

type LoginServiceClient interface {
	GetCaptcha(ctx context.Context, in *CaptchaReq, opts ...grpc.CallOption) (*CaptchaResp, error)
	Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterResp, error)
}

LoginServiceClient is the client API for LoginService 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.

type LoginServiceServer

type LoginServiceServer interface {
	GetCaptcha(context.Context, *CaptchaReq) (*CaptchaResp, error)
	Register(context.Context, *RegisterReq) (*RegisterResp, error)
	// contains filtered or unexported methods
}

LoginServiceServer is the server API for LoginService service. All implementations must embed UnimplementedLoginServiceServer for forward compatibility

type RegisterReq

type RegisterReq struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Mobile   string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Captcha  string `protobuf:"bytes,5,opt,name=captcha,proto3" json:"captcha,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterReq) Descriptor deprecated

func (*RegisterReq) Descriptor() ([]byte, []int)

Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.

func (*RegisterReq) GetCaptcha

func (x *RegisterReq) GetCaptcha() string

func (*RegisterReq) GetEmail

func (x *RegisterReq) GetEmail() string

func (*RegisterReq) GetMobile

func (x *RegisterReq) GetMobile() string

func (*RegisterReq) GetName

func (x *RegisterReq) GetName() string

func (*RegisterReq) GetPassword

func (x *RegisterReq) GetPassword() string

func (*RegisterReq) ProtoMessage

func (*RegisterReq) ProtoMessage()

func (*RegisterReq) ProtoReflect

func (x *RegisterReq) ProtoReflect() protoreflect.Message

func (*RegisterReq) Reset

func (x *RegisterReq) Reset()

func (*RegisterReq) String

func (x *RegisterReq) String() string

type RegisterResp

type RegisterResp struct {
	// contains filtered or unexported fields
}

func (*RegisterResp) Descriptor deprecated

func (*RegisterResp) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResp.ProtoReflect.Descriptor instead.

func (*RegisterResp) ProtoMessage

func (*RegisterResp) ProtoMessage()

func (*RegisterResp) ProtoReflect

func (x *RegisterResp) ProtoReflect() protoreflect.Message

func (*RegisterResp) Reset

func (x *RegisterResp) Reset()

func (*RegisterResp) String

func (x *RegisterResp) String() string

type UnimplementedLoginServiceServer

type UnimplementedLoginServiceServer struct {
}

UnimplementedLoginServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLoginServiceServer) GetCaptcha

func (UnimplementedLoginServiceServer) Register

type UnsafeLoginServiceServer

type UnsafeLoginServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLoginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoginServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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