Pulse/pkg/licensing/contracts.go
2026-03-18 16:06:30 +00:00

14 lines
401 B
Go

package licensing
import "context"
// FeatureChecker exposes feature-gate checks for the current tenant/license context.
type FeatureChecker interface {
RequireFeature(feature string) error
HasFeature(feature string) bool
}
// FeatureServiceResolver resolves a feature checker for the request context.
type FeatureServiceResolver interface {
FeatureService(ctx context.Context) FeatureChecker
}