Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationData ¶
func (*ActivationData) UnmarshalJSON ¶
func (activationData *ActivationData) UnmarshalJSON(b []byte) error
type Customer ¶
func (*Customer) UnmarshalJSON ¶
type KeyActivateArguments ¶
type LicenseKey ¶
type LicenseKey struct { ProductId int Id int Key string Created time.Time Expires time.Time Period int F1 bool F2 bool F3 bool F4 bool F5 bool F6 bool F7 bool F8 bool Notes string Block bool GlobalId int64 Customer Customer ActivatedMachines []ActivationData TrialActivation bool MaxNoOfMachines int AllowedMachines []string DataObjects []DataObject SignDate time.Time // contains filtered or unexported fields }
func KeyActivate ¶
func KeyActivate(token string, args KeyActivateArguments) (LicenseKey, error)
func KeyFromBytes ¶
func KeyFromBytes(b []byte) (LicenseKey, error)
func (*LicenseKey) HasValidSignature ¶
func (licenseKey *LicenseKey) HasValidSignature(publicKey string) bool
func (*LicenseKey) ToBytes ¶
func (licenseKey *LicenseKey) ToBytes() ([]byte, error)
func (*LicenseKey) UnmarshalJSON ¶
func (licenseKey *LicenseKey) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.