license

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, encrypted string) ([]byte, error)

Types

type Feature

type Feature struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

type LicenseInfo

type LicenseInfo struct {
	Code      string    `json:"code"`
	Company   string    `json:"company"`
	Node      int64     `json:"node"`
	Memory    int64     `json:"memory"`
	EndTime   string    `json:"end_time"`
	StartTime string    `json:"start_time"`
	Features  []Feature `json:"features"`
}

LicenseInfo license data

func ReadLicense

func ReadLicense() *LicenseInfo

ReadLicense -

func (*LicenseInfo) HaveFeature

func (l *LicenseInfo) HaveFeature(code string) bool

Jump to

Keyboard shortcuts

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