Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type ErrorResponse
- func (*ErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResponse) GetCode() ErrorResponse_ErrorCode
- func (x *ErrorResponse) GetMessage() string
- func (*ErrorResponse) ProtoMessage()
- func (x *ErrorResponse) ProtoReflect() protoreflect.Message
- func (x *ErrorResponse) Reset()
- func (x *ErrorResponse) String() string
- type ErrorResponse_ErrorCode
- func (ErrorResponse_ErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorResponse_ErrorCode) Enum() *ErrorResponse_ErrorCode
- func (ErrorResponse_ErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorResponse_ErrorCode) Number() protoreflect.EnumNumber
- func (x ErrorResponse_ErrorCode) String() string
- func (ErrorResponse_ErrorCode) Type() protoreflect.EnumType
- type InitOAuthRequest
- func (*InitOAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitOAuthRequest) GetProvider() string
- func (x *InitOAuthRequest) GetRedirectUri() string
- func (*InitOAuthRequest) ProtoMessage()
- func (x *InitOAuthRequest) ProtoReflect() protoreflect.Message
- func (x *InitOAuthRequest) Reset()
- func (x *InitOAuthRequest) String() string
- type OAuthCallbackRequest
- func (*OAuthCallbackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthCallbackRequest) GetCode() string
- func (x *OAuthCallbackRequest) GetProvider() string
- func (x *OAuthCallbackRequest) GetRedirectUri() string
- func (x *OAuthCallbackRequest) GetState() string
- func (*OAuthCallbackRequest) ProtoMessage()
- func (x *OAuthCallbackRequest) ProtoReflect() protoreflect.Message
- func (x *OAuthCallbackRequest) Reset()
- func (x *OAuthCallbackRequest) String() string
- type OAuthUrlResponse
- func (*OAuthUrlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OAuthUrlResponse) GetAuthUrl() string
- func (x *OAuthUrlResponse) GetState() string
- func (*OAuthUrlResponse) ProtoMessage()
- func (x *OAuthUrlResponse) ProtoReflect() protoreflect.Message
- func (x *OAuthUrlResponse) Reset()
- func (x *OAuthUrlResponse) String() string
- type OTPRequest
- type OTPResponse
- func (*OTPResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OTPResponse) GetExpiresMinutes() int32
- func (x *OTPResponse) GetMessage() string
- func (x *OTPResponse) GetRequestId() string
- func (x *OTPResponse) GetSuccess() bool
- func (*OTPResponse) ProtoMessage()
- func (x *OTPResponse) ProtoReflect() protoreflect.Message
- func (x *OTPResponse) Reset()
- func (x *OTPResponse) String() string
- type RefreshRequest
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetFirstName() string
- func (x *RegisterRequest) GetLastName() string
- func (x *RegisterRequest) GetToken() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type RevokeRequest
- func (*RevokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeRequest) GetRevokeAll() bool
- func (x *RevokeRequest) GetToken() string
- func (*RevokeRequest) ProtoMessage()
- func (x *RevokeRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeRequest) Reset()
- func (x *RevokeRequest) String() string
- type RevokeResponse
- func (*RevokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeResponse) GetMessage() string
- func (x *RevokeResponse) GetSuccess() bool
- func (*RevokeResponse) ProtoMessage()
- func (x *RevokeResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeResponse) Reset()
- func (x *RevokeResponse) String() string
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetAccessToken() string
- func (x *TokenResponse) GetExpiresAt() int64
- func (x *TokenResponse) GetMessage() string
- func (x *TokenResponse) GetRefreshToken() string
- func (x *TokenResponse) GetSuccess() bool
- func (x *TokenResponse) GetUserId() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) CompleteOAuth(context.Context, *OAuthCallbackRequest) (*TokenResponse, error)
- func (UnimplementedAuthServiceServer) InitOAuth(context.Context, *InitOAuthRequest) (*OAuthUrlResponse, error)
- func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshRequest) (*TokenResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) RequestOTP(context.Context, *OTPRequest) (*OTPResponse, error)
- func (UnimplementedAuthServiceServer) RevokeToken(context.Context, *RevokeRequest) (*RevokeResponse, error)
- func (UnimplementedAuthServiceServer) ValidateToken(context.Context, *ValidateRequest) (*ValidateResponse, error)
- func (UnimplementedAuthServiceServer) VerifyOTP(context.Context, *VerifyOTPRequest) (*TokenResponse, error)
- type UnsafeAuthServiceServer
- type ValidateRequest
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateResponse) GetExpiresAt() int64
- func (x *ValidateResponse) GetMessage() string
- func (x *ValidateResponse) GetPermission() []string
- func (x *ValidateResponse) GetUserId() string
- func (x *ValidateResponse) GetValid() bool
- func (*ValidateResponse) ProtoMessage()
- func (x *ValidateResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateResponse) Reset()
- func (x *ValidateResponse) String() string
- type VerifyOTPRequest
- func (*VerifyOTPRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyOTPRequest) GetCode() string
- func (x *VerifyOTPRequest) GetRequestId() string
- func (*VerifyOTPRequest) ProtoMessage()
- func (x *VerifyOTPRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyOTPRequest) Reset()
- func (x *VerifyOTPRequest) String() string
Constants ¶
const ( AuthService_Register_FullMethodName = "/auth.AuthService/Register" AuthService_RequestOTP_FullMethodName = "/auth.AuthService/RequestOTP" AuthService_VerifyOTP_FullMethodName = "/auth.AuthService/VerifyOTP" AuthService_InitOAuth_FullMethodName = "/auth.AuthService/InitOAuth" AuthService_CompleteOAuth_FullMethodName = "/auth.AuthService/CompleteOAuth" AuthService_RefreshToken_FullMethodName = "/auth.AuthService/RefreshToken" AuthService_ValidateToken_FullMethodName = "/auth.AuthService/ValidateToken" AuthService_RevokeToken_FullMethodName = "/auth.AuthService/RevokeToken" )
Variables ¶
var ( ErrorResponse_ErrorCode_name = map[int32]string{ 0: "UNKNOWN", 1: "INVALID_CREDENTIALS", 2: "EXPIRED_TOKEN", 3: "INVALID_OTP", 4: "RATE_LIMITED", 5: "USER_NOT_FOUND", 6: "UNAUTHORIZED", } ErrorResponse_ErrorCode_value = map[string]int32{ "UNKNOWN": 0, "INVALID_CREDENTIALS": 1, "EXPIRED_TOKEN": 2, "INVALID_OTP": 3, "RATE_LIMITED": 4, "USER_NOT_FOUND": 5, "UNAUTHORIZED": 6, } )
Enum value maps for ErrorResponse_ErrorCode.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "RequestOTP", Handler: _AuthService_RequestOTP_Handler, }, { MethodName: "VerifyOTP", Handler: _AuthService_VerifyOTP_Handler, }, { MethodName: "InitOAuth", Handler: _AuthService_InitOAuth_Handler, }, { MethodName: "CompleteOAuth", Handler: _AuthService_CompleteOAuth_Handler, }, { MethodName: "RefreshToken", Handler: _AuthService_RefreshToken_Handler, }, { MethodName: "ValidateToken", Handler: _AuthService_ValidateToken_Handler, }, { MethodName: "RevokeToken", Handler: _AuthService_RevokeToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/auth.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)
var File_proto_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) RequestOTP(ctx context.Context, in *OTPRequest, opts ...grpc.CallOption) (*OTPResponse, error) VerifyOTP(ctx context.Context, in *VerifyOTPRequest, opts ...grpc.CallOption) (*TokenResponse, error) InitOAuth(ctx context.Context, in *InitOAuthRequest, opts ...grpc.CallOption) (*OAuthUrlResponse, error) CompleteOAuth(ctx context.Context, in *OAuthCallbackRequest, opts ...grpc.CallOption) (*TokenResponse, error) RefreshToken(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*TokenResponse, error) ValidateToken(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) RevokeToken(ctx context.Context, in *RevokeRequest, opts ...grpc.CallOption) (*RevokeResponse, 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.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) RequestOTP(context.Context, *OTPRequest) (*OTPResponse, error) VerifyOTP(context.Context, *VerifyOTPRequest) (*TokenResponse, error) InitOAuth(context.Context, *InitOAuthRequest) (*OAuthUrlResponse, error) CompleteOAuth(context.Context, *OAuthCallbackRequest) (*TokenResponse, error) RefreshToken(context.Context, *RefreshRequest) (*TokenResponse, error) ValidateToken(context.Context, *ValidateRequest) (*ValidateResponse, error) RevokeToken(context.Context, *RevokeRequest) (*RevokeResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.
type ErrorResponse ¶
type ErrorResponse struct { Code ErrorResponse_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=auth.ErrorResponse_ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ErrorResponse) Descriptor
deprecated
func (*ErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) GetCode ¶
func (x *ErrorResponse) GetCode() ErrorResponse_ErrorCode
func (*ErrorResponse) GetMessage ¶
func (x *ErrorResponse) GetMessage() string
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) ProtoReflect ¶
func (x *ErrorResponse) ProtoReflect() protoreflect.Message
func (*ErrorResponse) Reset ¶
func (x *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (x *ErrorResponse) String() string
type ErrorResponse_ErrorCode ¶
type ErrorResponse_ErrorCode int32
const ( ErrorResponse_UNKNOWN ErrorResponse_ErrorCode = 0 ErrorResponse_INVALID_CREDENTIALS ErrorResponse_ErrorCode = 1 ErrorResponse_EXPIRED_TOKEN ErrorResponse_ErrorCode = 2 ErrorResponse_INVALID_OTP ErrorResponse_ErrorCode = 3 ErrorResponse_RATE_LIMITED ErrorResponse_ErrorCode = 4 ErrorResponse_USER_NOT_FOUND ErrorResponse_ErrorCode = 5 ErrorResponse_UNAUTHORIZED ErrorResponse_ErrorCode = 6 )
func (ErrorResponse_ErrorCode) Descriptor ¶
func (ErrorResponse_ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorResponse_ErrorCode) Enum ¶
func (x ErrorResponse_ErrorCode) Enum() *ErrorResponse_ErrorCode
func (ErrorResponse_ErrorCode) EnumDescriptor
deprecated
func (ErrorResponse_ErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorResponse_ErrorCode.Descriptor instead.
func (ErrorResponse_ErrorCode) Number ¶
func (x ErrorResponse_ErrorCode) Number() protoreflect.EnumNumber
func (ErrorResponse_ErrorCode) String ¶
func (x ErrorResponse_ErrorCode) String() string
func (ErrorResponse_ErrorCode) Type ¶
func (ErrorResponse_ErrorCode) Type() protoreflect.EnumType
type InitOAuthRequest ¶
type InitOAuthRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*InitOAuthRequest) Descriptor
deprecated
func (*InitOAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitOAuthRequest.ProtoReflect.Descriptor instead.
func (*InitOAuthRequest) GetProvider ¶
func (x *InitOAuthRequest) GetProvider() string
func (*InitOAuthRequest) GetRedirectUri ¶
func (x *InitOAuthRequest) GetRedirectUri() string
func (*InitOAuthRequest) ProtoMessage ¶
func (*InitOAuthRequest) ProtoMessage()
func (*InitOAuthRequest) ProtoReflect ¶
func (x *InitOAuthRequest) ProtoReflect() protoreflect.Message
func (*InitOAuthRequest) Reset ¶
func (x *InitOAuthRequest) Reset()
func (*InitOAuthRequest) String ¶
func (x *InitOAuthRequest) String() string
type OAuthCallbackRequest ¶
type OAuthCallbackRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*OAuthCallbackRequest) Descriptor
deprecated
func (*OAuthCallbackRequest) Descriptor() ([]byte, []int)
Deprecated: Use OAuthCallbackRequest.ProtoReflect.Descriptor instead.
func (*OAuthCallbackRequest) GetCode ¶
func (x *OAuthCallbackRequest) GetCode() string
func (*OAuthCallbackRequest) GetProvider ¶
func (x *OAuthCallbackRequest) GetProvider() string
func (*OAuthCallbackRequest) GetRedirectUri ¶
func (x *OAuthCallbackRequest) GetRedirectUri() string
func (*OAuthCallbackRequest) GetState ¶
func (x *OAuthCallbackRequest) GetState() string
func (*OAuthCallbackRequest) ProtoMessage ¶
func (*OAuthCallbackRequest) ProtoMessage()
func (*OAuthCallbackRequest) ProtoReflect ¶
func (x *OAuthCallbackRequest) ProtoReflect() protoreflect.Message
func (*OAuthCallbackRequest) Reset ¶
func (x *OAuthCallbackRequest) Reset()
func (*OAuthCallbackRequest) String ¶
func (x *OAuthCallbackRequest) String() string
type OAuthUrlResponse ¶
type OAuthUrlResponse struct { AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"` State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*OAuthUrlResponse) Descriptor
deprecated
func (*OAuthUrlResponse) Descriptor() ([]byte, []int)
Deprecated: Use OAuthUrlResponse.ProtoReflect.Descriptor instead.
func (*OAuthUrlResponse) GetAuthUrl ¶
func (x *OAuthUrlResponse) GetAuthUrl() string
func (*OAuthUrlResponse) GetState ¶
func (x *OAuthUrlResponse) GetState() string
func (*OAuthUrlResponse) ProtoMessage ¶
func (*OAuthUrlResponse) ProtoMessage()
func (*OAuthUrlResponse) ProtoReflect ¶
func (x *OAuthUrlResponse) ProtoReflect() protoreflect.Message
func (*OAuthUrlResponse) Reset ¶
func (x *OAuthUrlResponse) Reset()
func (*OAuthUrlResponse) String ¶
func (x *OAuthUrlResponse) String() string
type OTPRequest ¶
type OTPRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*OTPRequest) Descriptor
deprecated
func (*OTPRequest) Descriptor() ([]byte, []int)
Deprecated: Use OTPRequest.ProtoReflect.Descriptor instead.
func (*OTPRequest) GetEmail ¶
func (x *OTPRequest) GetEmail() string
func (*OTPRequest) ProtoMessage ¶
func (*OTPRequest) ProtoMessage()
func (*OTPRequest) ProtoReflect ¶
func (x *OTPRequest) ProtoReflect() protoreflect.Message
func (*OTPRequest) Reset ¶
func (x *OTPRequest) Reset()
func (*OTPRequest) String ¶
func (x *OTPRequest) String() string
type OTPResponse ¶
type OTPResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` ExpiresMinutes int32 `protobuf:"varint,3,opt,name=expires_minutes,json=expiresMinutes,proto3" json:"expires_minutes,omitempty"` RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
func (*OTPResponse) Descriptor
deprecated
func (*OTPResponse) Descriptor() ([]byte, []int)
Deprecated: Use OTPResponse.ProtoReflect.Descriptor instead.
func (*OTPResponse) GetExpiresMinutes ¶
func (x *OTPResponse) GetExpiresMinutes() int32
func (*OTPResponse) GetMessage ¶
func (x *OTPResponse) GetMessage() string
func (*OTPResponse) GetRequestId ¶
func (x *OTPResponse) GetRequestId() string
func (*OTPResponse) GetSuccess ¶
func (x *OTPResponse) GetSuccess() bool
func (*OTPResponse) ProtoMessage ¶
func (*OTPResponse) ProtoMessage()
func (*OTPResponse) ProtoReflect ¶
func (x *OTPResponse) ProtoReflect() protoreflect.Message
func (*OTPResponse) Reset ¶
func (x *OTPResponse) Reset()
func (*OTPResponse) String ¶
func (x *OTPResponse) String() string
type RefreshRequest ¶
type RefreshRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetRefreshToken ¶
func (x *RefreshRequest) GetRefreshToken() string
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,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) GetFirstName ¶
func (x *RegisterRequest) GetFirstName() string
func (*RegisterRequest) GetLastName ¶
func (x *RegisterRequest) GetLastName() string
func (*RegisterRequest) GetToken ¶
func (x *RegisterRequest) GetToken() 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 RegisterResponse ¶
type RegisterResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetToken ¶
func (x *RegisterResponse) GetToken() string
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 RevokeRequest ¶
type RevokeRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` RevokeAll bool `protobuf:"varint,2,opt,name=revoke_all,json=revokeAll,proto3" json:"revoke_all,omitempty"` // contains filtered or unexported fields }
func (*RevokeRequest) Descriptor
deprecated
func (*RevokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead.
func (*RevokeRequest) GetRevokeAll ¶
func (x *RevokeRequest) GetRevokeAll() bool
func (*RevokeRequest) GetToken ¶
func (x *RevokeRequest) GetToken() string
func (*RevokeRequest) ProtoMessage ¶
func (*RevokeRequest) ProtoMessage()
func (*RevokeRequest) ProtoReflect ¶
func (x *RevokeRequest) ProtoReflect() protoreflect.Message
func (*RevokeRequest) Reset ¶
func (x *RevokeRequest) Reset()
func (*RevokeRequest) String ¶
func (x *RevokeRequest) String() string
type RevokeResponse ¶
type RevokeResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RevokeResponse) Descriptor
deprecated
func (*RevokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead.
func (*RevokeResponse) GetMessage ¶
func (x *RevokeResponse) GetMessage() string
func (*RevokeResponse) GetSuccess ¶
func (x *RevokeResponse) GetSuccess() bool
func (*RevokeResponse) ProtoMessage ¶
func (*RevokeResponse) ProtoMessage()
func (*RevokeResponse) ProtoReflect ¶
func (x *RevokeResponse) ProtoReflect() protoreflect.Message
func (*RevokeResponse) Reset ¶
func (x *RevokeResponse) Reset()
func (*RevokeResponse) String ¶
func (x *RevokeResponse) String() string
type TokenResponse ¶
type TokenResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` ExpiresAt int64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetAccessToken ¶
func (x *TokenResponse) GetAccessToken() string
func (*TokenResponse) GetExpiresAt ¶
func (x *TokenResponse) GetExpiresAt() int64
func (*TokenResponse) GetMessage ¶
func (x *TokenResponse) GetMessage() string
func (*TokenResponse) GetRefreshToken ¶
func (x *TokenResponse) GetRefreshToken() string
func (*TokenResponse) GetSuccess ¶
func (x *TokenResponse) GetSuccess() bool
func (*TokenResponse) GetUserId ¶
func (x *TokenResponse) GetUserId() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct{}
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAuthServiceServer) CompleteOAuth ¶
func (UnimplementedAuthServiceServer) CompleteOAuth(context.Context, *OAuthCallbackRequest) (*TokenResponse, error)
func (UnimplementedAuthServiceServer) InitOAuth ¶
func (UnimplementedAuthServiceServer) InitOAuth(context.Context, *InitOAuthRequest) (*OAuthUrlResponse, error)
func (UnimplementedAuthServiceServer) RefreshToken ¶
func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshRequest) (*TokenResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) RequestOTP ¶
func (UnimplementedAuthServiceServer) RequestOTP(context.Context, *OTPRequest) (*OTPResponse, error)
func (UnimplementedAuthServiceServer) RevokeToken ¶
func (UnimplementedAuthServiceServer) RevokeToken(context.Context, *RevokeRequest) (*RevokeResponse, error)
func (UnimplementedAuthServiceServer) ValidateToken ¶
func (UnimplementedAuthServiceServer) ValidateToken(context.Context, *ValidateRequest) (*ValidateResponse, error)
func (UnimplementedAuthServiceServer) VerifyOTP ¶
func (UnimplementedAuthServiceServer) VerifyOTP(context.Context, *VerifyOTPRequest) (*TokenResponse, error)
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.
type ValidateRequest ¶
type ValidateRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetToken ¶
func (x *ValidateRequest) GetToken() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
type ValidateResponse ¶
type ValidateResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Permission []string `protobuf:"bytes,3,rep,name=permission,proto3" json:"permission,omitempty"` ExpiresAt int64 `protobuf:"varint,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetExpiresAt ¶
func (x *ValidateResponse) GetExpiresAt() int64
func (*ValidateResponse) GetMessage ¶
func (x *ValidateResponse) GetMessage() string
func (*ValidateResponse) GetPermission ¶
func (x *ValidateResponse) GetPermission() []string
func (*ValidateResponse) GetUserId ¶
func (x *ValidateResponse) GetUserId() string
func (*ValidateResponse) GetValid ¶
func (x *ValidateResponse) GetValid() bool
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string
type VerifyOTPRequest ¶
type VerifyOTPRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*VerifyOTPRequest) Descriptor
deprecated
func (*VerifyOTPRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyOTPRequest.ProtoReflect.Descriptor instead.
func (*VerifyOTPRequest) GetCode ¶
func (x *VerifyOTPRequest) GetCode() string
func (*VerifyOTPRequest) GetRequestId ¶
func (x *VerifyOTPRequest) GetRequestId() string
func (*VerifyOTPRequest) ProtoMessage ¶
func (*VerifyOTPRequest) ProtoMessage()
func (*VerifyOTPRequest) ProtoReflect ¶
func (x *VerifyOTPRequest) ProtoReflect() protoreflect.Message
func (*VerifyOTPRequest) Reset ¶
func (x *VerifyOTPRequest) Reset()
func (*VerifyOTPRequest) String ¶
func (x *VerifyOTPRequest) String() string