Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenceGenerator ¶
type LicenceGenerator struct {
PrivateKey *rsa.PrivateKey
}
func NewLicenceGenerator ¶
func NewLicenceGenerator(privateKeyPath string) (*LicenceGenerator, error)
func (*LicenceGenerator) CreateLicence ¶
func (lg *LicenceGenerator) CreateLicence(data *LicenceData) (string, error)
type LicenceValidator ¶
func NewLicenceValidator ¶
func NewLicenceValidator(publicKeyPath string) (*LicenceValidator, error)
func NewLicenceValidatorFromPublicKey ¶ added in v0.1.2
func NewLicenceValidatorFromPublicKey(publicKey *rsa.PublicKey) *LicenceValidator
func (*LicenceValidator) ValidateLicence ¶
func (lv *LicenceValidator) ValidateLicence(licence string) (*LicenceData, error)
Click to show internal directories.
Click to hide internal directories.