package
0.0.0-20240827173519-ada784989723
Repository: https://github.com/readium/readium-lcp-server.git
Documentation: pkg.go.dev

# Functions

CreateLicenseStatusDocument creates a license status and adds it to database It is triggered by a notification from the license server.
ExtendSubscription extends the lifetime of a subscription license.
FilterLicenseStatuses returns a sequence of license statuses, in their id order function for detecting licenses which used a lot of devices.
GetFreshLicense gets a fresh license from the License Server after requesting user data (for this license) from the CMS.
GetLicenseStatusDocument gets a license status from the db by license id checks potential_rights_end and fill it.
LendingCancellation cancels (before use) or revokes (after use) a license.
LendingRenewal checks that the calling device is registered with the license, then modifies the end date associated with the license and returns an updated license status to the caller.
LendingReturn checks that the calling device is activated, then modifies the end date associated with the given license & returns updated and filled license status.
ListRegisteredDevices returns data about the use of a given license.
RegisterDevice registers a device for a given license, using the device id & name as parameters; returns the updated license status.

# Constants

No description provided by the author

# Structs

UserData represents the payload requested to the CMS.

# Interfaces

Server interface.