License tiers.
const ( LicenseTierUnlicensed = license.LicenseTierUnlicensed LicenseTierCommunity = license.LicenseTierCommunity LicenseTierIndividual = license.LicenseTierIndividual LicenseTierBusiness = license.LicenseTierBusiness )
func GetMeteredState() (license.MeteredStatus, error)
GetMeteredState checks the currently used metered document usage status, documents used and credits available.
func SetLegacyLicenseKey(s string) error
SetLegacyLicenseKey installs a legacy license code. License codes issued prior to June 2019. Will be removed at some point in a future major version.
func SetLicenseKey(content string, customerName string) error
SetLicenseKey sets and validates the license key.
func SetMeteredKey(apiKey string) error
SetMeteredKey sets the metered License API key required for SaaS operation. Document usage is reported periodically for the product to function correctly.
LegacyLicense holds the old-style unioffice license information.
type LegacyLicense = license.LegacyLicense
LegacyLicenseType is the type of license
type LegacyLicenseType = license.LegacyLicenseType
LicenseKey represents a loaded license key.
type LicenseKey = license.LicenseKey
func GetLicenseKey() *LicenseKey
GetLicenseKey returns the currently loaded license key.
func MakeUnlicensedKey() *LicenseKey
MakeUnlicensedKey returns a default key.