Versions in this module Expand all Collapse all v0 v0.1.5 Feb 22, 2026 Changes in this version + const DefaultCacheTTL + const DefaultGracePeriod + const DefaultRefreshInterval + type HTTPValidator struct + func NewHTTPValidator(cfg ValidatorConfig, logger *slog.Logger) *HTTPValidator + func (v *HTTPValidator) CanLoadPlugin(tier string) bool + func (v *HTTPValidator) CheckFeature(feature string) bool + func (v *HTTPValidator) GetLicenseInfo() *LicenseInfo + func (v *HTTPValidator) Start(ctx context.Context) error + func (v *HTTPValidator) Stop(_ context.Context) + func (v *HTTPValidator) Validate(ctx context.Context, key string) (*ValidationResult, error) + type LicenseInfo struct + ExpiresAt time.Time + Features []string + Key string + MaxPlugins int + MaxWorkflows int + Organization string + Tier string + type ValidationResult struct + CachedUntil time.Time + Error string + License LicenseInfo + Valid bool + type Validator interface + CheckFeature func(feature string) bool + GetLicenseInfo func() *LicenseInfo + Validate func(ctx context.Context, key string) (*ValidationResult, error) + type ValidatorConfig struct + CacheTTL time.Duration + GracePeriod time.Duration + LicenseKey string + RefreshInterval time.Duration + ServerURL string