license

package
v3.0.0-...-55e877b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package license helps manage commercial licenses and check if they are valid for the version of unipdf used.

Index

Constants

View Source
const (
	LicenseTierUnlicensed = _d.LicenseTierUnlicensed
	LicenseTierCommunity  = _d.LicenseTierCommunity
	LicenseTierIndividual = _d.LicenseTierIndividual
	LicenseTierBusiness   = _d.LicenseTierBusiness
)

Variables

This section is empty.

Functions

func GetMeteredState

func GetMeteredState() (_d.MeteredStatus, error)

GetMeteredState checks the currently used metered document usage status, documents used and credits available.

func SetLicenseKey

func SetLicenseKey(content string, customerName string) error

SetLicenseKey sets and validates the license key.

func SetMeteredKey

func SetMeteredKey(apiKey string) error

SetMeteredKey sets the metered API key required for SaaS operation. Document usage is reported periodically for the product to function correctly.

func SetMeteredKeyPersistentCache

func SetMeteredKeyPersistentCache(val bool)

SetMeteredKeyPersistentCache sets the metered License API Key persistent cache. Default value 'true', set to `false` will report the usage immediately to license server, this can be used when there's no access to persistent data storage.

Types

type LicenseKey

type LicenseKey = _d.LicenseKey

LicenseKey represents a loaded license key.

func GetLicenseKey

func GetLicenseKey() *LicenseKey

GetLicenseKey returns the currently loaded license key.

func MakeUnlicensedKey

func MakeUnlicensedKey() *LicenseKey

MakeUnlicensedKey returns a default key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL