2019-11-01 21:56:12 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type Licensing interface {
|
|
|
|
|
// HasValidLicense is true if a valid license exists
|
|
|
|
|
HasValidLicense() bool
|
|
|
|
|
|
|
|
|
|
// HasLicense is true if there is a license provided
|
|
|
|
|
HasLicense() bool
|
|
|
|
|
|
|
|
|
|
// Expiry returns the unix epoch timestamp when the license expires, or 0 if no valid license is provided
|
|
|
|
|
Expiry() int64
|
2020-01-27 16:24:44 +08:00
|
|
|
|
|
|
|
|
// Return edition
|
|
|
|
|
Edition() string
|
|
|
|
|
|
|
|
|
|
LicenseURL(user *SignedInUser) string
|
|
|
|
|
|
|
|
|
|
StateInfo() string
|
2019-11-01 21:56:12 +08:00
|
|
|
}
|