# Functions
GetExtAndFileTypeByMimeType returns data extension and file type by its mime type.
GetMimeTypesByExt returns all mime types related to extension(s).
GetPaginationSettings extracts and returns common pagination settings from a request.
GetSearchConditions builds and returns bson collection find condition from a request.
GetSortFields formats and returns sort fields from a request.
InterfaceToObjectIds extracts and converts slice of hex strings or ObjectIds to slice of ObjectIds.
InterfaceToStrings extracts and converts slice of interfaces to slice of strings.
MD5 hashes using md5 algorithm.
NewApiError creates and returns new normalized ApiError instance.
NewBadRequestError creates and returns 400 ApiError.
NewDataError initilizes and returns a new DataError.
NewHook creates and returns new Hook instance.
NewNotFoundError creates and returns 404 ApiError.
Random generates and returns random string.
RenderTemplateFiles renders html templates and returns the result as a string.
RenderTemplateStrings resolves inline html template strings.
SendEmails sends simple email with html body.
SendHook creates new hook instance and sends a POST request to the specified url.
SendJsonPostData sends json post request data.
Sentenize converts and normalizes string into a sentence.
SetPaginationHeaders sets common pagination related headers.
StringInSlice checks whether a string exist in array/slice.
UcFirst converts the first character of a string into uppercase.
ValidateMimeType validates data mime type.
ValidateSize validates data size.
# Constants
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
HookActionCreate specify the `create` action hook.
HookActionDelete specify the `delete` action hook.
HookActionUpdate specify the `update` action hook.
HookTypeCollection specify the `collection` type hook.
HookTypeEntity specify the `entity` type hook.
SearchSpecialChar stores the special character used to simulate LIKE query search NB! need to be valid url and non escapable regex string character(s).