cryptolens

package
v0.0.0-...-c1b99a2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationData

type ActivationData struct {
	Mid  string
	IP   string
	Time time.Time
}

func (*ActivationData) UnmarshalJSON

func (activationData *ActivationData) UnmarshalJSON(b []byte) error

type Customer

type Customer struct {
	Id          int
	Name        string
	Email       string
	CompanyName string
	Created     time.Time
}

func (*Customer) UnmarshalJSON

func (customer *Customer) UnmarshalJSON(b []byte) error

type DataObject

type DataObject struct {
	Id          int
	Name        string
	StringValue string
	IntValue    int
}

type KeyActivateArguments

type KeyActivateArguments struct {
	ProductId            int
	Key                  string
	MachineCode          string
	FieldsToReturn       int
	FloatingTimeInterval int
	MaxOverdraft         int
}

type LicenseKey

type LicenseKey struct {
	ProductId         int
	Id                int
	Key               string
	Created           time.Time
	Expires           time.Time
	Period            int
	F1                bool
	F2                bool
	F3                bool
	F4                bool
	F5                bool
	F6                bool
	F7                bool
	F8                bool
	Notes             string
	Block             bool
	GlobalId          int64
	Customer          Customer
	ActivatedMachines []ActivationData
	TrialActivation   bool
	MaxNoOfMachines   int
	AllowedMachines   []string
	DataObjects       []DataObject
	SignDate          time.Time
	// contains filtered or unexported fields
}

func KeyActivate

func KeyActivate(token string, args KeyActivateArguments) (LicenseKey, error)

func KeyFromBytes

func KeyFromBytes(b []byte) (LicenseKey, error)

func (*LicenseKey) HasValidSignature

func (licenseKey *LicenseKey) HasValidSignature(publicKey string) bool

func (*LicenseKey) ToBytes

func (licenseKey *LicenseKey) ToBytes() ([]byte, error)

func (*LicenseKey) UnmarshalJSON

func (licenseKey *LicenseKey) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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