package
0.0.0-20250118164806-5041dba8c4b1
Repository: https://github.com/go-lumen/lumen-api.git
Documentation: pkg.go.dev
# Functions
ActivateUser allows to activate a user by its id.
All returns an empty filter (for semantic).
ByGroupID returns a group_id filter.
ByID returns a by ID filter.
ChangeGroupOrganization allows to change the organization of a group by its id.
ChangeParent allows to change an organization parent by their IDs.
CreateGroup checks if group already exists, and if not, creates it.
CreateOrganization checks if organization already exists, and if not, creates it.
CreateUser checks if user already exists, and if not, creates it.
DeleteUser allows to delete a user by its id.
FindGroup is used to find a group in a groups list (for performance purposes, only 1 db request).
FindGroupByFuzzyName is used to find a group in a groups list by fuzzy name matching (for performance purposes, only 1 db request).
FindOrganization is used to find an organization in a organizations list (for performance purposes, only 1 db request).
FindUser is used to find a user in a users list (for performance purposes, only 1 db request).
GetGroup allows to retrieve a group by its characteristics.
GetGroups allows to get all groups.
GetOrganization allows to retrieve a organization by its characteristics.
GetOrganizations allows to get all organizations.
GetUser allows to retrieve a user by its characteristics.
GetUsers allows to get all users.
IsOrganizationChildren allows to know if an organization is a children.
IsOrganizationParent allows to know if an organization is a parent, and retrieve its parent if not.
OrgByAppKey returns an org filter.
UpdateOrganization allows to update one or more organization characteristics.
UpdateUser allows to update one or more user characteristics.
UserExists allows checking if a user exists by its email.
# Constants
GroupsCollection represents a specific MongoDB collection.
UsersCollection represents a specific MongoDB collection.
UsersTableName represents a SQL table.
# Structs
EmailData holds informations required to send an email.
Group type holds all required informations.
Organization type holds all required information.
No description provided by the author
SanitizedOrganization type holds only essential informations.
SanitizedOrganizationWithParent type holds only essential informations with nested parent.
SanitizedUser allows to expose only few characteristics.
TextData holds informations required to send a text.
User type holds all required information.
UserAuth type holds required information for authentication.
UserDetails type holds user with details.