license

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2018 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LicenseTierUnlicensed = "unlicensed"
	LicenseTierCommunity  = "community"
	LicenseTierIndividual = "individual"
	LicenseTierBusiness   = "business"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LicenseKey

type LicenseKey struct {
	LicenseId    string    `json:"license_id"`
	CustomerId   string    `json:"customer_id"`
	CustomerName string    `json:"customer_name"`
	Tier         string    `json:"tier"`
	CreatedAt    time.Time `json:"-"`
	CreatedAtInt int64     `json:"created_at"`
	CreatedBy    string    `json:"created_by"`
	CreatorName  string    `json:"creator_name"`
	CreatorEmail string    `json:"creator_email"`
}

func MakeUnlicensedKey

func MakeUnlicensedKey() *LicenseKey

func (*LicenseKey) IsLicensed

func (lk *LicenseKey) IsLicensed() bool

func (*LicenseKey) ToString

func (this *LicenseKey) ToString() string

func (*LicenseKey) TypeToString

func (this *LicenseKey) TypeToString() string

func (*LicenseKey) Validate

func (this *LicenseKey) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL