Versions in this module Expand all Collapse all v0 v0.1.0 Nov 27, 2025 Changes in this version + var ErrLicenseExpired = errors.New("license is expired") + var ErrPublicKeyInvalid = errors.New("public key is invalid") + var ErrPublicKeyMissing = errors.New("public key is missing") + var ErrSignatureInvalid = errors.New("signature is invalid") + var PrivateKey = "" + var PublicKey = "" + type License struct + CreatedAt time.Time + Customer string + ExpiredAt time.Time + ID string + Plan string + Signature string + Version string + func New() *License + func NewFree() *License + func ParseLicense(licenseJSON string) (*License, error) + func (l *License) Expired() bool + func (l *License) GetLicense() string + func (l *License) Sign() error + func (l *License) SignProperties(props Properties) error + func (l *License) String() string + func (l *License) Validate() error + type Properties map[string]interface + func (props Properties) Delete(key string) + func (props Properties) GetString(key string) string + func (props Properties) JSON() (string, error) + func (props Properties) Set(key string, value string) + func ParseProperties(str string) (Properties, error) + type Signer struct + PrivateKey []byte + func NewSigner(privateKey string) (*Signer, error) + func (s *Signer) Sign(message string) string + type Verifier struct + PublicKey []byte + func NewVerifier(publicKey string) (*Verifier, error) + func (v *Verifier) Verify(message, signature []byte) bool