Configuration Options
Custom Logger (Resty)
WithRestyLogger(restyLogger resty.Logger)type CustomLogger struct{}
func (fl *CustomLogger) Debugf(format string, v ...interface{}) {}
func (fl *CustomLogger) Errorf(format string, v ...interface{}) {}
func (fl *CustomLogger) Warnf(format string, v ...interface{}) {}
lm_config := license_manager.LicenseManagerBasicConfiguration{
OAuth: false,
ApiKey: "your-api-key",
SharedKey: "your-shared-key",
ProductCode: "your-product-code",
AuthData: auth.FromKey("LICENSE-KEY"),
}
lm, _ := license_manager.NewLicenseManager(
lm_config,
license_manager.WithRestyLogger(CustomLogger),
)
cfg.Manager = lm
lh, _ := license_handler.NewLicenseHandler(cfg)WithAirGapPublicKey
WithGracePeriod
WithSyncPeriod
WithRestyVerbose
WithVerifySignature
WithEnableGuardFile
WithHardwareId
WithAppName
WithAppVersion
WithServerPublicKey
WithHardwareIdAlgo
WithMachineId
Was this helpful?