mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-06 16:16:26 +00:00
14 lines
401 B
Go
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
|
|
}
|