Documentation ¶
Index ¶
- type AuthenticationServer
- func (s *AuthenticationServer) IsAuthorizationRequired() bool
- func (s *AuthenticationServer) RefreshToken(ctx context.Context, in *v1.RefreshTokenRequest) (*v1.AuthenticationResponse, error)
- func (s *AuthenticationServer) ResetPassword(_ context.Context, in *v1.ResetPasswordRequest) (*v1.ResetPasswordResponse, error)
- func (s *AuthenticationServer) ResetPasswordConfirm(_ context.Context, in *v1.ResetPasswordConfirmRequest) (*v1.DefaultResponse, error)
- func (s *AuthenticationServer) SignIn(ctx context.Context, in *v1.SignInRequest) (*v1.AuthenticationResponse, error)
- func (s *AuthenticationServer) SignUp(ctx context.Context, in *v1.SignUpRequest) (*v1.AuthenticationResponse, error)
- type PermissionServer
- type RoleServer
- type SessionServer
- func (s *SessionServer) DeleteSession(ctx context.Context, in *v1.DeleteSessionRequest) (*v1.DefaultResponse, error)
- func (s *SessionServer) GetSessions(ctx context.Context, _ *v1.GetSessionsRequest) (*v1.GetSessionsResponse, error)
- func (s *SessionServer) IsAuthorizationRequired() bool
- func (s *SessionServer) SignOut(ctx context.Context, in *v1.SignOutRequest) (*v1.DefaultResponse, error)
- type UserServer
- func (s *UserServer) ChangeEmail(ctx context.Context, in *v1.ChangeEmailRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) DeleteUser(ctx context.Context, _ *v1.DeleteUserRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) GetUser(ctx context.Context, _ *v1.GetUserRequest) (*v1.GetUserResponse, error)
- func (s *UserServer) GetUserProfile(ctx context.Context, _ *v1.GetUserProfileRequest) (*v1.GetUserProfileResponse, error)
- func (s *UserServer) GetUsers(ctx context.Context, in *v1.ListRequest) (*v1.GetUsersResponse, error)
- func (s *UserServer) IsAuthorizationRequired() bool
- func (s *UserServer) SendVerificationCode(ctx context.Context, in *v1.SendVerificationCodeRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) UpdateUser(ctx context.Context, in *v1.UpdateUserRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) Verify(ctx context.Context, in *v1.VerifyRequest) (*v1.DefaultResponse, error)
- func (s *UserServer) VerifyToken(ctx context.Context, in *v1.VerifyTokenRequest) (*v1.AuthenticationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationServer ¶
type AuthenticationServer struct { token.AuthorizationRequired v1.UnimplementedAuthenticationServiceServer }
func (*AuthenticationServer) IsAuthorizationRequired ¶
func (s *AuthenticationServer) IsAuthorizationRequired() bool
func (*AuthenticationServer) RefreshToken ¶
func (s *AuthenticationServer) RefreshToken(ctx context.Context, in *v1.RefreshTokenRequest) (*v1.AuthenticationResponse, error)
func (*AuthenticationServer) ResetPassword ¶
func (s *AuthenticationServer) ResetPassword(_ context.Context, in *v1.ResetPasswordRequest) (*v1.ResetPasswordResponse, error)
func (*AuthenticationServer) ResetPasswordConfirm ¶
func (s *AuthenticationServer) ResetPasswordConfirm(_ context.Context, in *v1.ResetPasswordConfirmRequest) (*v1.DefaultResponse, error)
func (*AuthenticationServer) SignIn ¶
func (s *AuthenticationServer) SignIn(ctx context.Context, in *v1.SignInRequest) (*v1.AuthenticationResponse, error)
func (*AuthenticationServer) SignUp ¶
func (s *AuthenticationServer) SignUp(ctx context.Context, in *v1.SignUpRequest) (*v1.AuthenticationResponse, error)
type PermissionServer ¶
type PermissionServer struct { token.AuthorizationRequired v1.UnimplementedPermissionServiceServer }
func (*PermissionServer) IsAuthorizationRequired ¶
func (s *PermissionServer) IsAuthorizationRequired() bool
type RoleServer ¶
type RoleServer struct { token.AuthorizationRequired v1.UnimplementedRoleServiceServer }
func (*RoleServer) IsAuthorizationRequired ¶
func (s *RoleServer) IsAuthorizationRequired() bool
type SessionServer ¶
type SessionServer struct { token2.AuthorizationRequired v1.UnimplementedSessionServiceServer }
func (*SessionServer) DeleteSession ¶
func (s *SessionServer) DeleteSession(ctx context.Context, in *v1.DeleteSessionRequest) (*v1.DefaultResponse, error)
func (*SessionServer) GetSessions ¶
func (s *SessionServer) GetSessions(ctx context.Context, _ *v1.GetSessionsRequest) (*v1.GetSessionsResponse, error)
func (*SessionServer) IsAuthorizationRequired ¶
func (s *SessionServer) IsAuthorizationRequired() bool
func (*SessionServer) SignOut ¶
func (s *SessionServer) SignOut(ctx context.Context, in *v1.SignOutRequest) (*v1.DefaultResponse, error)
type UserServer ¶
type UserServer struct { token.AuthorizationRequired v1.UnimplementedUserServiceServer }
func (*UserServer) ChangeEmail ¶
func (s *UserServer) ChangeEmail(ctx context.Context, in *v1.ChangeEmailRequest) (*v1.DefaultResponse, error)
func (*UserServer) ChangePassword ¶
func (s *UserServer) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest) (*v1.DefaultResponse, error)
func (*UserServer) DeleteUser ¶
func (s *UserServer) DeleteUser(ctx context.Context, _ *v1.DeleteUserRequest) (*v1.DefaultResponse, error)
DeleteUser TODO: Implement this function
func (*UserServer) GetUser ¶
func (s *UserServer) GetUser(ctx context.Context, _ *v1.GetUserRequest) (*v1.GetUserResponse, error)
func (*UserServer) GetUserProfile ¶
func (s *UserServer) GetUserProfile(ctx context.Context, _ *v1.GetUserProfileRequest) (*v1.GetUserProfileResponse, error)
func (*UserServer) GetUsers ¶
func (s *UserServer) GetUsers(ctx context.Context, in *v1.ListRequest) (*v1.GetUsersResponse, error)
func (*UserServer) IsAuthorizationRequired ¶
func (s *UserServer) IsAuthorizationRequired() bool
func (*UserServer) SendVerificationCode ¶
func (s *UserServer) SendVerificationCode(ctx context.Context, in *v1.SendVerificationCodeRequest) (*v1.DefaultResponse, error)
func (*UserServer) UpdateUser ¶
func (s *UserServer) UpdateUser(ctx context.Context, in *v1.UpdateUserRequest) (*v1.DefaultResponse, error)
UpdateUser TODO: Refactor this function
func (*UserServer) Verify ¶
func (s *UserServer) Verify(ctx context.Context, in *v1.VerifyRequest) (*v1.DefaultResponse, error)
func (*UserServer) VerifyToken ¶
func (s *UserServer) VerifyToken(ctx context.Context, in *v1.VerifyTokenRequest) (*v1.AuthenticationResponse, error)
Click to show internal directories.
Click to hide internal directories.