mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 14:12:41 +08:00
FeatureFlags: Use interface rather than manager (#80000)
This commit is contained in:
@ -149,11 +149,6 @@ func (fn ClientMiddlewareFunc) CreateClientMiddleware(next Client) Client {
|
||||
return fn(next)
|
||||
}
|
||||
|
||||
type FeatureToggles interface {
|
||||
IsEnabledGlobally(flag string) bool
|
||||
GetEnabled(ctx context.Context) map[string]bool
|
||||
}
|
||||
|
||||
type SignatureCalculator interface {
|
||||
Calculate(ctx context.Context, src PluginSource, plugin FoundPlugin) (Signature, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user