Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PublicKey is the public key used for verifying license PublicKey = "" // PrivateKey is the private key used for signing license PrivateKey = "" )
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct {
ID string `json:"id"`
Plan string `json:"plan"`
Customer string `json:"customer"`
ExpiredAt time.Time `json:"expired_at"`
CreatedAt time.Time `json:"created_at"`
Version string `json:"version"`
Signature string `json:"signature"`
// contains filtered or unexported fields
}
func ParseLicense ¶
func (*License) GetLicense ¶
func (*License) SignProperties ¶
func (l *License) SignProperties(props Properties) error
type Properties ¶
type Properties map[string]interface{}
func ParseProperties ¶
func ParseProperties(str string) (Properties, error)
func (Properties) Delete ¶
func (props Properties) Delete(key string)
func (Properties) GetString ¶
func (props Properties) GetString(key string) string
func (Properties) JSON ¶
func (props Properties) JSON() (string, error)
func (Properties) Set ¶
func (props Properties) Set(key string, value string)
Click to show internal directories.
Click to hide internal directories.