Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSignature is a ... ErrInvalidSignature = errors.New("invalid signature") // ErrMalformedLicense is a ... ErrMalformedLicense = errors.New("malformed license") )
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(data []byte) (ed25519.PrivateKey, error)
DecodePrivateKey is a ...
func DecodePublicKey ¶
DecodePublicKey is a ...
Types ¶
type License ¶
type License struct { Iss string `json:"iss,omitempty"` // Issued By Cus string `json:"cus,omitempty"` // Customer ID Sub uint32 `json:"sub,omitempty"` // Subscriber ID Typ string `json:"typ,omitempty"` // License Type Lim Limits `json:"lim,omitempty"` // License Limit (e.g. Site) Iat time.Time `json:"iat,omitempty"` // Issued At Exp time.Time `json:"exp,omitempty"` // Expires At Dat json.RawMessage `json:"dat,omitempty"` // Metadata }
License is a ...
Click to show internal directories.
Click to hide internal directories.