grafana/pkg/services/ngalert/state/persister_noop.go
2024-01-23 17:03:30 +01:00

17 lines
349 B
Go

package state
import (
"context"
"go.opentelemetry.io/otel/trace"
)
type NoopPersister struct{}
func (n *NoopPersister) Async(_ context.Context, _ *cache) {}
func (n *NoopPersister) Sync(_ context.Context, _ trace.Span, _, _ []StateTransition) {}
func NewNoopPersister() StatePersister {
return &NoopPersister{}
}