package
0.0.0-20220531233405-25ebc1e64f25
Repository: https://github.com/fubaydullaev/readium-lcp-server.git
Documentation: pkg.go.dev

# Functions

AddContent adds content to the storage lcp spec : store data resulting from an external encryption PUT method with PAYLOAD : LcpPublication in json format This method adds the input encrypted file in a store and adds the corresponding decryption key to the database.
DecodeJSONLicense decodes a license formatted in json and returns a license object.
GenerateLicense generates and returns a new license, for a given content identified by its id plus a partial license given as input.
GenerateLicensedPublication generates and returns a licensed publication for a given content identified by its id plus a partial license given as input.
GetContent fetches and returns an encrypted content file selected by it content id (uuid).
GetLicense returns an existing license, selected by a license id and a partial license both given as input.
GetLicensedPublication returns a licensed publication for a given license identified by its id plus a partial license given as input.
ListContents lists the content in the storage index.
ListLicenses returns a JSON struct with information about the existing licenses parameters: page: page number per_page: number of items par page.
ListLicensesForContent lists all licenses associated with a given content parameters: content_id: content identifier page: page number (default 1) per_page: number of items par page (default 30).
StoreContent stores content passed through the request body into the storage.
UpdateLicense updates an existing license.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrBadHexValue sets an error message returned to the caller.
ErrBadValue sets an error message returned to the caller.
ErrMandatoryInfoMissing sets an error message returned to the caller.

# Structs

LcpPublication is used for communication with the License Server.

# Interfaces

Server groups functions used by the lcp server.