21 lines
402 B
Go
21 lines
402 B
Go
package license
|
|
|
|
type LicenseRequest struct {
|
|
MachineID string `json:"machine_id"`
|
|
Expiry string `json:"expiry"` // YYYY-MM-DD
|
|
Features []string `json:"features"`
|
|
}
|
|
|
|
type LicenseFile struct {
|
|
Payload string `json:"payload"`
|
|
Signature string `json:"signature"`
|
|
}
|
|
|
|
type ActivationRecord struct {
|
|
ID int
|
|
MachineID string
|
|
License string
|
|
Activated bool
|
|
}
|
|
|