Documentation ¶
Index ¶
- Variables
- func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
- type AuthenticationClient
- type AuthenticationServer
- type Authentication_RefreshTokenClient
- type Authentication_RefreshTokenServer
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordRequest) GetAccessToken() string
- func (x *ChangePasswordRequest) GetNewPassword() string
- func (x *ChangePasswordRequest) GetOldPassword() string
- func (*ChangePasswordRequest) ProtoMessage()
- func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordRequest) Reset()
- func (x *ChangePasswordRequest) String() string
- type ChangePasswordResponse
- func (*ChangePasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePasswordResponse) GetMessage() string
- func (*ChangePasswordResponse) ProtoMessage()
- func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message
- func (x *ChangePasswordResponse) Reset()
- func (x *ChangePasswordResponse) String() string
- type DeleteAccountRequest
- func (*DeleteAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAccountRequest) GetPassword() string
- func (*DeleteAccountRequest) ProtoMessage()
- func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountRequest) Reset()
- func (x *DeleteAccountRequest) String() string
- type DeleteAccountResponse
- func (*DeleteAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAccountResponse) GetMessage() string
- func (*DeleteAccountResponse) ProtoMessage()
- func (x *DeleteAccountResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountResponse) Reset()
- func (x *DeleteAccountResponse) String() string
- type Disable2FARequest
- func (*Disable2FARequest) Descriptor() ([]byte, []int)deprecated
- func (x *Disable2FARequest) GetCode() string
- func (x *Disable2FARequest) GetPassword() string
- func (*Disable2FARequest) ProtoMessage()
- func (x *Disable2FARequest) ProtoReflect() protoreflect.Message
- func (x *Disable2FARequest) Reset()
- func (x *Disable2FARequest) String() string
- type Disable2FAResponse
- func (*Disable2FAResponse) Descriptor() ([]byte, []int)deprecated
- func (x *Disable2FAResponse) GetMessage() string
- func (*Disable2FAResponse) ProtoMessage()
- func (x *Disable2FAResponse) ProtoReflect() protoreflect.Message
- func (x *Disable2FAResponse) Reset()
- func (x *Disable2FAResponse) String() string
- type Enable2FARequest
- type Enable2FAResponse
- func (*Enable2FAResponse) Descriptor() ([]byte, []int)deprecated
- func (x *Enable2FAResponse) GetQRCode() string
- func (x *Enable2FAResponse) GetSecret() string
- func (*Enable2FAResponse) ProtoMessage()
- func (x *Enable2FAResponse) ProtoReflect() protoreflect.Message
- func (x *Enable2FAResponse) Reset()
- func (x *Enable2FAResponse) String() string
- type GetSessionsRequest
- func (*GetSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionsRequest) GetAccessToken() string
- func (*GetSessionsRequest) ProtoMessage()
- func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionsRequest) Reset()
- func (x *GetSessionsRequest) String() string
- type GetSessionsResponse
- func (*GetSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionsResponse) GetSessions() []string
- func (*GetSessionsResponse) ProtoMessage()
- func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionsResponse) Reset()
- func (x *GetSessionsResponse) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetAccessToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetAccessToken() string
- func (x *RefreshTokenResponse) GetExpiration() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetCode() string
- func (x *ResetPasswordRequest) GetPassword() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type ResetPasswordResponse
- func (*ResetPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordResponse) GetMessage() string
- func (*ResetPasswordResponse) ProtoMessage()
- func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordResponse) Reset()
- func (x *ResetPasswordResponse) String() string
- type RevokeSessionRequest
- func (*RevokeSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeSessionRequest) GetAccessToken() string
- func (x *RevokeSessionRequest) GetSessionID() string
- func (*RevokeSessionRequest) ProtoMessage()
- func (x *RevokeSessionRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeSessionRequest) Reset()
- func (x *RevokeSessionRequest) String() string
- type RevokeSessionResponse
- func (*RevokeSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeSessionResponse) GetMessage() string
- func (*RevokeSessionResponse) ProtoMessage()
- func (x *RevokeSessionResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeSessionResponse) Reset()
- func (x *RevokeSessionResponse) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetEmail() string
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignInResponse
- func (*SignInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignInResponse) GetAccessToken() string
- func (x *SignInResponse) GetExpiration() string
- func (*SignInResponse) ProtoMessage()
- func (x *SignInResponse) ProtoReflect() protoreflect.Message
- func (x *SignInResponse) Reset()
- func (x *SignInResponse) String() string
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetEmail() string
- func (x *SignUpRequest) GetPassword() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type SignUpResponse
- type UnimplementedAuthenticationServer
- func (UnimplementedAuthenticationServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
- func (UnimplementedAuthenticationServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error)
- func (UnimplementedAuthenticationServer) Disable2FA(context.Context, *Disable2FARequest) (*Disable2FAResponse, error)
- func (UnimplementedAuthenticationServer) Enable2FA(context.Context, *Enable2FARequest) (*Enable2FAResponse, error)
- func (UnimplementedAuthenticationServer) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
- func (UnimplementedAuthenticationServer) RefreshToken(*RefreshTokenRequest, Authentication_RefreshTokenServer) error
- func (UnimplementedAuthenticationServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
- func (UnimplementedAuthenticationServer) RevokeSession(context.Context, *RevokeSessionRequest) (*RevokeSessionResponse, error)
- func (UnimplementedAuthenticationServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
- func (UnimplementedAuthenticationServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
- func (UnimplementedAuthenticationServer) VerifyAccount(context.Context, *VerifyAccountRequest) (*VerifyAccountResponse, error)
- type UnsafeAuthenticationServer
- type VerifyAccountRequest
- func (*VerifyAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAccountRequest) GetCode() string
- func (*VerifyAccountRequest) ProtoMessage()
- func (x *VerifyAccountRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyAccountRequest) Reset()
- func (x *VerifyAccountRequest) String() string
- type VerifyAccountResponse
- func (*VerifyAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAccountResponse) GetMessage() string
- func (*VerifyAccountResponse) ProtoMessage()
- func (x *VerifyAccountResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyAccountResponse) Reset()
- func (x *VerifyAccountResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var Authentication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "authentication.v1.Authentication", HandlerType: (*AuthenticationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignIn", Handler: _Authentication_SignIn_Handler, }, { MethodName: "SignUp", Handler: _Authentication_SignUp_Handler, }, { MethodName: "GetSessions", Handler: _Authentication_GetSessions_Handler, }, { MethodName: "RevokeSession", Handler: _Authentication_RevokeSession_Handler, }, { MethodName: "ResetPassword", Handler: _Authentication_ResetPassword_Handler, }, { MethodName: "ChangePassword", Handler: _Authentication_ChangePassword_Handler, }, { MethodName: "Enable2FA", Handler: _Authentication_Enable2FA_Handler, }, { MethodName: "Disable2FA", Handler: _Authentication_Disable2FA_Handler, }, { MethodName: "VerifyAccount", Handler: _Authentication_VerifyAccount_Handler, }, { MethodName: "DeleteAccount", Handler: _Authentication_DeleteAccount_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "RefreshToken", Handler: _Authentication_RefreshToken_Handler, ServerStreams: true, }, }, Metadata: "v1/authentication.proto", }
Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_authentication_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServer ¶
func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
Types ¶
type AuthenticationClient ¶
type AuthenticationClient interface { SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*GetSessionsResponse, error) RevokeSession(ctx context.Context, in *RevokeSessionRequest, opts ...grpc.CallOption) (*RevokeSessionResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (Authentication_RefreshTokenClient, error) Enable2FA(ctx context.Context, in *Enable2FARequest, opts ...grpc.CallOption) (*Enable2FAResponse, error) Disable2FA(ctx context.Context, in *Disable2FARequest, opts ...grpc.CallOption) (*Disable2FAResponse, error) VerifyAccount(ctx context.Context, in *VerifyAccountRequest, opts ...grpc.CallOption) (*VerifyAccountResponse, error) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountResponse, error) }
AuthenticationClient is the client API for Authentication 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 NewAuthenticationClient ¶
func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient
type AuthenticationServer ¶
type AuthenticationServer interface { SignIn(context.Context, *SignInRequest) (*SignInResponse, error) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error) RevokeSession(context.Context, *RevokeSessionRequest) (*RevokeSessionResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) RefreshToken(*RefreshTokenRequest, Authentication_RefreshTokenServer) error Enable2FA(context.Context, *Enable2FARequest) (*Enable2FAResponse, error) Disable2FA(context.Context, *Disable2FARequest) (*Disable2FAResponse, error) VerifyAccount(context.Context, *VerifyAccountRequest) (*VerifyAccountResponse, error) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error) // contains filtered or unexported methods }
AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility
type Authentication_RefreshTokenClient ¶
type Authentication_RefreshTokenClient interface { Recv() (*RefreshTokenResponse, error) grpc.ClientStream }
type Authentication_RefreshTokenServer ¶
type Authentication_RefreshTokenServer interface { Send(*RefreshTokenResponse) error grpc.ServerStream }
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=OldPassword,proto3" json:"OldPassword,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=NewPassword,proto3" json:"NewPassword,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordRequest) Descriptor
deprecated
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) GetAccessToken ¶
func (x *ChangePasswordRequest) GetAccessToken() string
func (*ChangePasswordRequest) GetNewPassword ¶
func (x *ChangePasswordRequest) GetNewPassword() string
func (*ChangePasswordRequest) GetOldPassword ¶
func (x *ChangePasswordRequest) GetOldPassword() string
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) ProtoReflect ¶
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangePasswordRequest) Reset ¶
func (x *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (x *ChangePasswordRequest) String() string
type ChangePasswordResponse ¶
type ChangePasswordResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*ChangePasswordResponse) Descriptor
deprecated
func (*ChangePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
func (*ChangePasswordResponse) GetMessage ¶
func (x *ChangePasswordResponse) GetMessage() string
func (*ChangePasswordResponse) ProtoMessage ¶
func (*ChangePasswordResponse) ProtoMessage()
func (*ChangePasswordResponse) ProtoReflect ¶
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message
func (*ChangePasswordResponse) Reset ¶
func (x *ChangePasswordResponse) Reset()
func (*ChangePasswordResponse) String ¶
func (x *ChangePasswordResponse) String() string
type DeleteAccountRequest ¶
type DeleteAccountRequest struct { Password string `protobuf:"bytes,1,opt,name=Password,proto3" json:"Password,omitempty"` // contains filtered or unexported fields }
func (*DeleteAccountRequest) Descriptor
deprecated
func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.
func (*DeleteAccountRequest) GetPassword ¶
func (x *DeleteAccountRequest) GetPassword() string
func (*DeleteAccountRequest) ProtoMessage ¶
func (*DeleteAccountRequest) ProtoMessage()
func (*DeleteAccountRequest) ProtoReflect ¶
func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
func (*DeleteAccountRequest) Reset ¶
func (x *DeleteAccountRequest) Reset()
func (*DeleteAccountRequest) String ¶
func (x *DeleteAccountRequest) String() string
type DeleteAccountResponse ¶
type DeleteAccountResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*DeleteAccountResponse) Descriptor
deprecated
func (*DeleteAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountResponse.ProtoReflect.Descriptor instead.
func (*DeleteAccountResponse) GetMessage ¶
func (x *DeleteAccountResponse) GetMessage() string
func (*DeleteAccountResponse) ProtoMessage ¶
func (*DeleteAccountResponse) ProtoMessage()
func (*DeleteAccountResponse) ProtoReflect ¶
func (x *DeleteAccountResponse) ProtoReflect() protoreflect.Message
func (*DeleteAccountResponse) Reset ¶
func (x *DeleteAccountResponse) Reset()
func (*DeleteAccountResponse) String ¶
func (x *DeleteAccountResponse) String() string
type Disable2FARequest ¶
type Disable2FARequest struct { Password string `protobuf:"bytes,1,opt,name=Password,proto3" json:"Password,omitempty"` Code string `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"` // contains filtered or unexported fields }
func (*Disable2FARequest) Descriptor
deprecated
func (*Disable2FARequest) Descriptor() ([]byte, []int)
Deprecated: Use Disable2FARequest.ProtoReflect.Descriptor instead.
func (*Disable2FARequest) GetCode ¶
func (x *Disable2FARequest) GetCode() string
func (*Disable2FARequest) GetPassword ¶
func (x *Disable2FARequest) GetPassword() string
func (*Disable2FARequest) ProtoMessage ¶
func (*Disable2FARequest) ProtoMessage()
func (*Disable2FARequest) ProtoReflect ¶
func (x *Disable2FARequest) ProtoReflect() protoreflect.Message
func (*Disable2FARequest) Reset ¶
func (x *Disable2FARequest) Reset()
func (*Disable2FARequest) String ¶
func (x *Disable2FARequest) String() string
type Disable2FAResponse ¶
type Disable2FAResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*Disable2FAResponse) Descriptor
deprecated
func (*Disable2FAResponse) Descriptor() ([]byte, []int)
Deprecated: Use Disable2FAResponse.ProtoReflect.Descriptor instead.
func (*Disable2FAResponse) GetMessage ¶
func (x *Disable2FAResponse) GetMessage() string
func (*Disable2FAResponse) ProtoMessage ¶
func (*Disable2FAResponse) ProtoMessage()
func (*Disable2FAResponse) ProtoReflect ¶
func (x *Disable2FAResponse) ProtoReflect() protoreflect.Message
func (*Disable2FAResponse) Reset ¶
func (x *Disable2FAResponse) Reset()
func (*Disable2FAResponse) String ¶
func (x *Disable2FAResponse) String() string
type Enable2FARequest ¶
type Enable2FARequest struct { Password string `protobuf:"bytes,1,opt,name=Password,proto3" json:"Password,omitempty"` // contains filtered or unexported fields }
func (*Enable2FARequest) Descriptor
deprecated
func (*Enable2FARequest) Descriptor() ([]byte, []int)
Deprecated: Use Enable2FARequest.ProtoReflect.Descriptor instead.
func (*Enable2FARequest) GetPassword ¶
func (x *Enable2FARequest) GetPassword() string
func (*Enable2FARequest) ProtoMessage ¶
func (*Enable2FARequest) ProtoMessage()
func (*Enable2FARequest) ProtoReflect ¶
func (x *Enable2FARequest) ProtoReflect() protoreflect.Message
func (*Enable2FARequest) Reset ¶
func (x *Enable2FARequest) Reset()
func (*Enable2FARequest) String ¶
func (x *Enable2FARequest) String() string
type Enable2FAResponse ¶
type Enable2FAResponse struct { Secret string `protobuf:"bytes,1,opt,name=Secret,proto3" json:"Secret,omitempty"` QRCode string `protobuf:"bytes,2,opt,name=QRCode,proto3" json:"QRCode,omitempty"` // contains filtered or unexported fields }
func (*Enable2FAResponse) Descriptor
deprecated
func (*Enable2FAResponse) Descriptor() ([]byte, []int)
Deprecated: Use Enable2FAResponse.ProtoReflect.Descriptor instead.
func (*Enable2FAResponse) GetQRCode ¶
func (x *Enable2FAResponse) GetQRCode() string
func (*Enable2FAResponse) GetSecret ¶
func (x *Enable2FAResponse) GetSecret() string
func (*Enable2FAResponse) ProtoMessage ¶
func (*Enable2FAResponse) ProtoMessage()
func (*Enable2FAResponse) ProtoReflect ¶
func (x *Enable2FAResponse) ProtoReflect() protoreflect.Message
func (*Enable2FAResponse) Reset ¶
func (x *Enable2FAResponse) Reset()
func (*Enable2FAResponse) String ¶
func (x *Enable2FAResponse) String() string
type GetSessionsRequest ¶
type GetSessionsRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*GetSessionsRequest) Descriptor
deprecated
func (*GetSessionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsRequest.ProtoReflect.Descriptor instead.
func (*GetSessionsRequest) GetAccessToken ¶
func (x *GetSessionsRequest) GetAccessToken() string
func (*GetSessionsRequest) ProtoMessage ¶
func (*GetSessionsRequest) ProtoMessage()
func (*GetSessionsRequest) ProtoReflect ¶
func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message
func (*GetSessionsRequest) Reset ¶
func (x *GetSessionsRequest) Reset()
func (*GetSessionsRequest) String ¶
func (x *GetSessionsRequest) String() string
type GetSessionsResponse ¶
type GetSessionsResponse struct { Sessions []string `protobuf:"bytes,1,rep,name=Sessions,proto3" json:"Sessions,omitempty"` // contains filtered or unexported fields }
func (*GetSessionsResponse) Descriptor
deprecated
func (*GetSessionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionsResponse.ProtoReflect.Descriptor instead.
func (*GetSessionsResponse) GetSessions ¶
func (x *GetSessionsResponse) GetSessions() []string
func (*GetSessionsResponse) ProtoMessage ¶
func (*GetSessionsResponse) ProtoMessage()
func (*GetSessionsResponse) ProtoReflect ¶
func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message
func (*GetSessionsResponse) Reset ¶
func (x *GetSessionsResponse) Reset()
func (*GetSessionsResponse) String ¶
func (x *GetSessionsResponse) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetAccessToken ¶
func (x *RefreshTokenRequest) GetAccessToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` Expiration string `protobuf:"bytes,2,opt,name=Expiration,proto3" json:"Expiration,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetAccessToken ¶
func (x *RefreshTokenResponse) GetAccessToken() string
func (*RefreshTokenResponse) GetExpiration ¶
func (x *RefreshTokenResponse) GetExpiration() string
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetCode ¶
func (x *ResetPasswordRequest) GetCode() string
func (*ResetPasswordRequest) GetPassword ¶
func (x *ResetPasswordRequest) GetPassword() string
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type ResetPasswordResponse ¶
type ResetPasswordResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*ResetPasswordResponse) Descriptor
deprecated
func (*ResetPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetPasswordResponse) GetMessage ¶
func (x *ResetPasswordResponse) GetMessage() string
func (*ResetPasswordResponse) ProtoMessage ¶
func (*ResetPasswordResponse) ProtoMessage()
func (*ResetPasswordResponse) ProtoReflect ¶
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message
func (*ResetPasswordResponse) Reset ¶
func (x *ResetPasswordResponse) Reset()
func (*ResetPasswordResponse) String ¶
func (x *ResetPasswordResponse) String() string
type RevokeSessionRequest ¶
type RevokeSessionRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` SessionID string `protobuf:"bytes,2,opt,name=SessionID,proto3" json:"SessionID,omitempty"` // contains filtered or unexported fields }
func (*RevokeSessionRequest) Descriptor
deprecated
func (*RevokeSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeSessionRequest.ProtoReflect.Descriptor instead.
func (*RevokeSessionRequest) GetAccessToken ¶
func (x *RevokeSessionRequest) GetAccessToken() string
func (*RevokeSessionRequest) GetSessionID ¶
func (x *RevokeSessionRequest) GetSessionID() string
func (*RevokeSessionRequest) ProtoMessage ¶
func (*RevokeSessionRequest) ProtoMessage()
func (*RevokeSessionRequest) ProtoReflect ¶
func (x *RevokeSessionRequest) ProtoReflect() protoreflect.Message
func (*RevokeSessionRequest) Reset ¶
func (x *RevokeSessionRequest) Reset()
func (*RevokeSessionRequest) String ¶
func (x *RevokeSessionRequest) String() string
type RevokeSessionResponse ¶
type RevokeSessionResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*RevokeSessionResponse) Descriptor
deprecated
func (*RevokeSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeSessionResponse.ProtoReflect.Descriptor instead.
func (*RevokeSessionResponse) GetMessage ¶
func (x *RevokeSessionResponse) GetMessage() string
func (*RevokeSessionResponse) ProtoMessage ¶
func (*RevokeSessionResponse) ProtoMessage()
func (*RevokeSessionResponse) ProtoReflect ¶
func (x *RevokeSessionResponse) ProtoReflect() protoreflect.Message
func (*RevokeSessionResponse) Reset ¶
func (x *RevokeSessionResponse) Reset()
func (*RevokeSessionResponse) String ¶
func (x *RevokeSessionResponse) String() string
type SignInRequest ¶
type SignInRequest 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 (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetEmail ¶
func (x *SignInRequest) GetEmail() string
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type SignInResponse ¶
type SignInResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` Expiration string `protobuf:"bytes,2,opt,name=Expiration,proto3" json:"Expiration,omitempty"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetAccessToken ¶
func (x *SignInResponse) GetAccessToken() string
func (*SignInResponse) GetExpiration ¶
func (x *SignInResponse) GetExpiration() string
func (*SignInResponse) ProtoMessage ¶
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶
func (x *SignInResponse) String() string
type SignUpRequest ¶
type SignUpRequest 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 (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetEmail ¶
func (x *SignUpRequest) GetEmail() string
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
type SignUpResponse ¶
type SignUpResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) GetMessage ¶
func (x *SignUpResponse) GetMessage() string
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) ProtoReflect ¶
func (x *SignUpResponse) ProtoReflect() protoreflect.Message
func (*SignUpResponse) Reset ¶
func (x *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (x *SignUpResponse) String() string
type UnimplementedAuthenticationServer ¶
type UnimplementedAuthenticationServer struct { }
UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServer) ChangePassword ¶
func (UnimplementedAuthenticationServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
func (UnimplementedAuthenticationServer) DeleteAccount ¶
func (UnimplementedAuthenticationServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountResponse, error)
func (UnimplementedAuthenticationServer) Disable2FA ¶
func (UnimplementedAuthenticationServer) Disable2FA(context.Context, *Disable2FARequest) (*Disable2FAResponse, error)
func (UnimplementedAuthenticationServer) Enable2FA ¶
func (UnimplementedAuthenticationServer) Enable2FA(context.Context, *Enable2FARequest) (*Enable2FAResponse, error)
func (UnimplementedAuthenticationServer) GetSessions ¶
func (UnimplementedAuthenticationServer) GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
func (UnimplementedAuthenticationServer) RefreshToken ¶
func (UnimplementedAuthenticationServer) RefreshToken(*RefreshTokenRequest, Authentication_RefreshTokenServer) error
func (UnimplementedAuthenticationServer) ResetPassword ¶
func (UnimplementedAuthenticationServer) ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
func (UnimplementedAuthenticationServer) RevokeSession ¶
func (UnimplementedAuthenticationServer) RevokeSession(context.Context, *RevokeSessionRequest) (*RevokeSessionResponse, error)
func (UnimplementedAuthenticationServer) SignIn ¶
func (UnimplementedAuthenticationServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
func (UnimplementedAuthenticationServer) SignUp ¶
func (UnimplementedAuthenticationServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
func (UnimplementedAuthenticationServer) VerifyAccount ¶
func (UnimplementedAuthenticationServer) VerifyAccount(context.Context, *VerifyAccountRequest) (*VerifyAccountResponse, error)
type UnsafeAuthenticationServer ¶
type UnsafeAuthenticationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServer will result in compilation errors.
type VerifyAccountRequest ¶
type VerifyAccountRequest struct { Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` // contains filtered or unexported fields }
func (*VerifyAccountRequest) Descriptor
deprecated
func (*VerifyAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAccountRequest.ProtoReflect.Descriptor instead.
func (*VerifyAccountRequest) GetCode ¶
func (x *VerifyAccountRequest) GetCode() string
func (*VerifyAccountRequest) ProtoMessage ¶
func (*VerifyAccountRequest) ProtoMessage()
func (*VerifyAccountRequest) ProtoReflect ¶
func (x *VerifyAccountRequest) ProtoReflect() protoreflect.Message
func (*VerifyAccountRequest) Reset ¶
func (x *VerifyAccountRequest) Reset()
func (*VerifyAccountRequest) String ¶
func (x *VerifyAccountRequest) String() string
type VerifyAccountResponse ¶
type VerifyAccountResponse struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*VerifyAccountResponse) Descriptor
deprecated
func (*VerifyAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAccountResponse.ProtoReflect.Descriptor instead.
func (*VerifyAccountResponse) GetMessage ¶
func (x *VerifyAccountResponse) GetMessage() string
func (*VerifyAccountResponse) ProtoMessage ¶
func (*VerifyAccountResponse) ProtoMessage()
func (*VerifyAccountResponse) ProtoReflect ¶
func (x *VerifyAccountResponse) ProtoReflect() protoreflect.Message
func (*VerifyAccountResponse) Reset ¶
func (x *VerifyAccountResponse) Reset()
func (*VerifyAccountResponse) String ¶
func (x *VerifyAccountResponse) String() string