package
0.6.6
Repository: https://github.com/cygy/ginamite.git
Documentation: pkg.go.dev

# Functions

AddAbilitiesToUser : adds some abilities to an user.
BuildTokenFromID : returns the content of an auth token.
CancelUserRegistration : cancel the registration of an user.
CreateContact : creates a contact.
CreateNewDeleteAccountProcess : creates a process and returns its unique ID.
CreateNewDisableAccountProcess : creates a process and returns its unique ID.
CreateNewUpdateEmailAddressProcess : creates a process and returns its unique ID.
CreateNewUpdatePasswordProcess : creates a process and returns its unique ID.
CreateNewVerifyEmailAddressProcess : creates a process and returns its unique ID.
DeleteAccountPublicImage : deletes the image of the public profile.
DeleteForgotPasswordProcess : deletes a forgot password process.
DeleteProcessByID : deletes a process by its unique ID.
DeleteTokenByID : delete an auth token by its ID.
DeleteTokenByIDByAdmin : deletes a user's auth token by an admin.
DeleteUserByID : deletes an user by its ID.
DeleteUserNotification : deletes a notification received by the user.
DisableUserByID : disables an user by its ID.
DoesAccountWithEmailAddressExist : returns true if an account with this email address exists.
DoesAccountWithUsernameExist : returns true if an account with this username exists.
DoesUserWithFacebookUserIDExist : returns true if an account with this facebook id exists.
DoesUserWithGoogleUserIDExist : returns true if an account with this google id exists.
EnableUserByID : enables an user by its ID.
ExtendTokenExpirationDateFromID : extends the expiration date of an auth token.
GetContactForAdmin : gets a contact.
GetContactsForAdmin : returns the contacts for the admin panel.
GetDisabledUsersForAdmin : returns the disabled users for the admin panel.
GetEnabledUsersForAdmin : returns the enabled users for the admin panel.
GetForgotPasswordProcessDetailsByID : returns the user ID and the private key a forgot passsword process.
GetLatestVersionOfTermsAcceptedByUser : returns the latest version of the terms accepted by the user.
GetOwnedAccountDetails : returns the details of the user's account.
GetOwnedTokenByID : returns an auth token by its ID for an user.
GetOwnedTokens : returns the auth token for an user.
GetRegistrationDetails : returns the details of the registration of an user.
GetTokenDetailsByID : returns the details of an auth token.
GetTokenExpirationDate : returns the expiration date of an auth token.
GetTokensForAdmin : returns the user's auth tokens for the admin panel.
GetUserAbilities ; returns the abilities of an user.
GetUserAndLocaleFromAuthToken : returns the user struct and the user's locale.
GetUserDetailsAndEncryptedPasswordByIdentifierFromEnabledUser : returns the details of an user and its encrypted password by its identifier (email address or username).
GetUserDetailsByFacebookUserID : returns the details of an user by its unique facebook ID.
GetUserDetailsByGoogleUserID : returns the details of an user by its unique google ID.
GetUserDetailsByID : returns the details of an user by its ID.
GetUserDetailsByIdentifier : returns the details of an user by its identifier (email address or username).
IsValidAuthToken : returns trus if the auth token is valid.
NewForgotPasswordProcessForUser : returns the unique ID of a new forgot passsword process.
NotificationReceivedByUser : returns a notification received by the user.
NotificationsReceivedByUser : returns the latest notifications received by the user.
NotificationsSubscribedByUser : returns the notifications subscribed by the user.
RegisterByEmailAddress : saves the registration details of an user.
RegisterByThirdPartyToken : saves the registration details of an user.
RemoveAbilitiesFromUser : remove some abilities from an user.
SaveAuthenticationToken : saves an auth token.
SaveFacebookUserTokenDetailsToUser : saves the user's facebook details of an user.
SaveGoogleUserTokenDetailsToUser : saves the user's google details of an user.
SetAbilitiesToUser : sets the abilities to an user.
SubscribeNotificationsToUser : the user subscribes to these notifications.
UnsubscribeNotificationFromUser : the user has unsubscribed from a notification.
UpdateAccountPublicImage : updates the image of the public profile.
UpdateAccountPublicProfile : updates the public profile of an account.
UpdateContact : updates a contact.
UpdatedAccountInfos : updates the details of an user's account.
UpdatedAccountSettings : updates the settings of an user's account.
UpdateTokenByID : updates the details of a token.
UpdateUserDescriptionByAdmin : updates the description of a user by an admin.
UpdateUserEmailAddress : update the email address of an user.
UpdateUserInformationsByAdmin : updates the informations of a user by an admin.
UpdateUserNotificationNotified : updates the notified flag of a notification received by the user.
UpdateUserNotificationRead : updates the read flag of a notification received by the user.
UpdateUserNotificationsByAdmin : updates the notifications of a user by an admin.
UpdateUserPassword : update the password of an user.
UpdateUserPasswordByAdmin : updates the password of a user by an admin.
UpdateUserSettingsByAdmin : updates the settings of a user by an admin.
UpdateUserSocialByAdmin : updates the social networks of a user by an admin.
UpdateUserSocialNetworks : update the social network links of an user.
UpdateVersionOfTermsAcceptedByUser : the user has accepted this version of terms.
UserEmailAddressIsVerified : the email address of an user is verified.
ValidateUserRegistration : validate the registration of an user.
VerifyProcess : verify a process and returns its unique ID and its stored value.
WrongAccessToForgotPasswordProcess : actions to execute when a wrong access to a forgot password process occurs.