|
@@ -1,6 +1,8 @@
|
|
package ee
|
|
package ee
|
|
|
|
|
|
-import "fmt"
|
|
|
|
|
|
+import (
|
|
|
|
+ "errors"
|
|
|
|
+)
|
|
|
|
|
|
const (
|
|
const (
|
|
api_endpoint = "https://api.accounts.netmaker.io/api/v1/license/validate"
|
|
api_endpoint = "https://api.accounts.netmaker.io/api/v1/license/validate"
|
|
@@ -9,7 +11,7 @@ const (
|
|
server_id_key = "nm-server-id"
|
|
server_id_key = "nm-server-id"
|
|
)
|
|
)
|
|
|
|
|
|
-var errValidation = fmt.Errorf(license_validation_err_msg)
|
|
|
|
|
|
+var ErrValidation = errors.New(license_validation_err_msg)
|
|
|
|
|
|
// LicenseKey - the license key struct representation with associated data
|
|
// LicenseKey - the license key struct representation with associated data
|
|
type LicenseKey struct {
|
|
type LicenseKey struct {
|