mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix docstrings for IsEnabled and IsEnabledGlobally
This commit is contained in:
parent
893a8e77a8
commit
67e83e2ae1
@ -8,11 +8,11 @@ import (
|
||||
)
|
||||
|
||||
type FeatureToggles interface {
|
||||
// Check if a feature is enabled for a given context.
|
||||
// IsEnabled checks if a feature is enabled for a given context.
|
||||
// The settings may be per user, tenant, or globally set in the cloud
|
||||
IsEnabled(ctx context.Context, flag string) bool
|
||||
|
||||
// Check if a flag is configured globally. For now, this is the same
|
||||
// IsEnabledGlobally checks if a flag is configured globally. For now, this is the same
|
||||
// as the function above, however it will move to only checking flags that
|
||||
// are configured by the operator and shared across all tenants.
|
||||
// Use of global feature flags should be limited and careful as they require
|
||||
|
Loading…
Reference in New Issue
Block a user