# Functions
CheckPublicationByTitle checks if a publication with this title exists.
CreatePublication creates a publication in the database.
CreatePurchase creates a purchase in the database
.
CreateUser creates a user in the database.
DecodeJSONPublication transforms a json string to a User struct.
DecodeJSONPurchase transforms a json object into an golang object
.
DecodeJSONUser transforms a json string to a User struct.
DeletePublication removes a publication in the database.
DeleteUser creates a user in the database.
ExtractPaginationFromRequest extract from http.Request pagination information.
GetDashboardBestSellers gets the dashboard bestsellers
.
GetDashboardInfos searches a publication by its uuid.
GetFilteredLicenses searches licenses activated by more than n devices.
GetLicense gets an existing license by its id (passed as a section of the REST URL).
GetLicenseOwner retrieves a user by a license uuid he owns.
GetPublication returns a publication from its numeric id, given as part of the calling url.
GetPublications returns a list of publications.
GetPurchase gets a purchase by its id in the database
.
GetPurchaseByLicenseID gets a purchase by a license id in the database
.
GetPurchasedLicense generates a new license from the corresponding purchase id (passed as a section of the REST URL).
GetPurchases searches all purchases for a client
.
GetRepositoryMasterFiles returns a list of repository masterfiles.
GetUser searches a client by his email.
GetUserPurchases searches all purchases for a client
.
GetUsers returns a list of users.
PrepareListHeaderResponse set several http headers sets previous and next link headers.
UpdatePublication updates an identified publication (id) in the database.
UpdatePurchase updates a purchase in the database Only updates the license id (uuid), start and end date, status.
UpdateUser updates an identified user (id) in the database.
UploadPublication creates a new publication via a POST request This function is called from the frontend test client.
# Structs
Pagination used to paginate listing.
# Interfaces
IServer defines methods for db interaction.