license

package
v0.0.0-...-f34260d Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

type License struct {
	Signature string                 `json:"serial"`
	Message   string                 `json:"message"`
	Meta      map[string]interface{} `json:"meta"`
	// contains filtered or unexported fields
}

func New

func New(license string, options map[string]interface{}) (*License, error)

func (*License) Validate

func (t *License) Validate(meta map[string]interface{}) (bool, error)

Validating if desired serial/metas are contained in current license See this simple explanation if you wish to understand what's happening: https://www.sohamkamani.com/golang/rsa-encryption/#signing-and-verification

Jump to

Keyboard shortcuts

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