Documentation
¶
Index ¶
Constants ¶
View Source
const (
FeatureContentModeration = "content-moderation"
)
Commercial feature constants
Variables ¶
This section is empty.
Functions ¶
func IsCommercialFeatureEnabled ¶
Helper function for easy access
Types ¶
type LicenseInfo ¶
type LicenseInfo struct {
IsValid bool `json:"isValid"`
Features []string `json:"features"`
ExpiresAt *string `json:"expiresAt,omitempty"`
LicenseHolder string `json:"licenseHolder"`
}
LicenseInfo contains information about the current license
type LicenseService ¶
type LicenseService interface {
// IsCommercialFeatureEnabled checks if a specific commercial feature is licensed
IsCommercialFeatureEnabled(feature string) bool
// GetLicenseInfo returns information about the current license
GetLicenseInfo() *LicenseInfo
}
LicenseService provides license validation for commercial features
var License LicenseService = &defaultLicenseService{}
Global license service instance - can be overridden by commercial code
Click to show internal directories.
Click to hide internal directories.