package
1.0.0
Repository: https://github.com/hyperjumptech/hansip.git
Documentation: pkg.go.dev

# Functions

Activate2FA handle 2FA activation request.
ActivateUser serve user activation process.
ChangePassphrase handles the change password request.
CreateGroupRole serving reqest to create new group role.
CreateGroupUser serving request to create new User-Group.
CreateNewGroup serving request to create new Group.
CreateNewUser handles request to create new user.
CreateRole serve the creation new role endpoint.
CreateRoleGroup serving request to create new group-role.
CreateRoleUser serving request to create new user-role.
CreateUserGroup serve creation of user-group relation.
CreateUserRole serve a user-role relation.
DeleteGroup serving request to delete a group.
DeleteGroupRole serving request to delete group-role.
No description provided by the author
DeleteGroupUser serving request to delete user-group.
No description provided by the author
DeleteRole serving request to delete a role.
DeleteRoleGroup serving request to delete group-role.
No description provided by the author
DeleteRoleUser serving request to delete user-role.
No description provided by the author
DeleteUser serve user deletion.
DeleteUserGroup serve deleting a user-group relation.
No description provided by the author
DeleteUserRole serve the user deletion.
No description provided by the author
GetGroupDetail serving request to fetch group detail.
GetRoleDetail serving request to get role detail.
GetUserDetail serve fetch user detail.
InitializeRouter will initialize router to execute management endpoints.
ListAllGroup serving the listing of group request.
ListAllRole handling endpoint to serve Listing all roles in database.
ListAllUserRole serve listing of all roles belong to user, both direct or indirect.
ListAllUsers serving listing all user request.
ListGroupRole serving request to list all group-role.
ListGroupUser serving request to list Users of a group.
ListRoleGroup endpoint to serve group-role.
ListRoleUser serving request to list user-role.
ListUserGroup serve a user-group listing.
ListUserRole serve listing all role that directly owned by user.
RecoverPassphrase serving request for recovering passphrase.
ResetPassphrase serving passphrase reset request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Show2FAQrCode shows 2FA QR code.
UpdateGroup serving request to update group detail.
UpdateRole serving request to update role detail.
UpdateUserDetail rest endpoint to update user detail.
WhoAmI handles who am I inquiry request.

# Variables

EmailSender is email sender instance.
GroupRepo is a group repository instance.
GroupRoleRepo is a group role repository instance.
RoleRepo is a role repository instance.
UserGroupRepo is a user group repository instance.
UserRepo is a user Repository instance.
UserRoleRepo is a user role repository instance.

# Structs

Activate2FARequest hold request structure for activating the 2FA request.
Activate2FAResponse hold response structure for activating the 2FA request.
ActivateUserRequest hold request data for activating user.
ChangePassphraseRequest stores change password request.
CreateGroupRequest hold model for Create new Group.
CreateNewUserRequest hold the data model for requesting to create new user.
CreateNewUserResponse hold the data model for responding CreateNewUser request.
CreateRoleRequest hold dta model for requesting to create new role.
GroupSummary hold group information summay.
RecoverPassphraseRequest hold the model for requesting passphrase recovery.
ResetPassphraseRequest hold data model for reseting passphrase.
RoleSummary hold role information summay.
SimpleGroup hold basic data of group.
SimpleRole define structure or request body used to list role.
SimpleUser hold data model of user.
UpdateUserRequest hold request data for requesting to update user information.
WhoAmIResponse holds the response structure for WhoAmI request.