auth

package
v0.0.0-...-efd50ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthService_Login_FullMethodName                = "/bellis.backend.mobile.auth.AuthService/Login"
	AuthService_Register_FullMethodName             = "/bellis.backend.mobile.auth.AuthService/Register"
	AuthService_GetRegisterCaptcha_FullMethodName   = "/bellis.backend.mobile.auth.AuthService/GetRegisterCaptcha"
	AuthService_GetForgetCaptcha_FullMethodName     = "/bellis.backend.mobile.auth.AuthService/GetForgetCaptcha"
	AuthService_ForgetChangePassword_FullMethodName = "/bellis.backend.mobile.auth.AuthService/ForgetChangePassword"
)

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bellis.backend.mobile.auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "GetRegisterCaptcha",
			Handler:    _AuthService_GetRegisterCaptcha_Handler,
		},
		{
			MethodName: "GetForgetCaptcha",
			Handler:    _AuthService_GetForgetCaptcha_Handler,
		},
		{
			MethodName: "ForgetChangePassword",
			Handler:    _AuthService_ForgetChangePassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/authenticate.proto",
}

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

View Source
var File_auth_authenticate_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetRegisterCaptcha(ctx context.Context, in *RegisterCaptchaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetForgetCaptcha(ctx context.Context, in *ForgetCaptchaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ForgetChangePassword(ctx context.Context, in *ForgetChangePasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	Register(context.Context, *RegisterRequest) (*emptypb.Empty, error)
	GetRegisterCaptcha(context.Context, *RegisterCaptchaRequest) (*emptypb.Empty, error)
	GetForgetCaptcha(context.Context, *ForgetCaptchaRequest) (*emptypb.Empty, error)
	ForgetChangePassword(context.Context, *ForgetChangePasswordRequest) (*emptypb.Empty, error)
}

AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility

type ForgetCaptchaRequest

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

func (*ForgetCaptchaRequest) Descriptor deprecated

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

Deprecated: Use ForgetCaptchaRequest.ProtoReflect.Descriptor instead.

func (*ForgetCaptchaRequest) GetEmail

func (x *ForgetCaptchaRequest) GetEmail() string

func (*ForgetCaptchaRequest) ProtoMessage

func (*ForgetCaptchaRequest) ProtoMessage()

func (*ForgetCaptchaRequest) ProtoReflect

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

func (*ForgetCaptchaRequest) Reset

func (x *ForgetCaptchaRequest) Reset()

func (*ForgetCaptchaRequest) String

func (x *ForgetCaptchaRequest) String() string

type ForgetChangePasswordRequest

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

func (*ForgetChangePasswordRequest) Descriptor deprecated

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

Deprecated: Use ForgetChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ForgetChangePasswordRequest) GetCaptcha

func (x *ForgetChangePasswordRequest) GetCaptcha() string

func (*ForgetChangePasswordRequest) GetEmail

func (x *ForgetChangePasswordRequest) GetEmail() string

func (*ForgetChangePasswordRequest) GetPassword

func (x *ForgetChangePasswordRequest) GetPassword() string

func (*ForgetChangePasswordRequest) ProtoMessage

func (*ForgetChangePasswordRequest) ProtoMessage()

func (*ForgetChangePasswordRequest) ProtoReflect

func (*ForgetChangePasswordRequest) Reset

func (x *ForgetChangePasswordRequest) Reset()

func (*ForgetChangePasswordRequest) String

func (x *ForgetChangePasswordRequest) 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 {
	Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() 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 RegisterCaptchaRequest

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

func (*RegisterCaptchaRequest) Descriptor deprecated

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

Deprecated: Use RegisterCaptchaRequest.ProtoReflect.Descriptor instead.

func (*RegisterCaptchaRequest) GetEmail

func (x *RegisterCaptchaRequest) GetEmail() string

func (*RegisterCaptchaRequest) ProtoMessage

func (*RegisterCaptchaRequest) ProtoMessage()

func (*RegisterCaptchaRequest) ProtoReflect

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

func (*RegisterCaptchaRequest) Reset

func (x *RegisterCaptchaRequest) Reset()

func (*RegisterCaptchaRequest) String

func (x *RegisterCaptchaRequest) String() string

type RegisterRequest

type RegisterRequest 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"`
	Captcha  string `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetCaptcha

func (x *RegisterRequest) GetCaptcha() string

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

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 UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) ForgetChangePassword

func (UnimplementedAuthServiceServer) GetForgetCaptcha

func (UnimplementedAuthServiceServer) GetRegisterCaptcha

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Register

type UnsafeAuthServiceServer

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

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

Jump to

Keyboard shortcuts

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