mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-10-30 18:26:45 +00:00
20 lines
499 B
Go
20 lines
499 B
Go
package noopledger
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hanzoai/o11y-foundry/internal/domain"
|
|
"github.com/hanzoai/o11y-foundry/internal/ledger"
|
|
)
|
|
|
|
// provider is a no-op implementation of ledger.Ledger.
|
|
type provider struct{}
|
|
|
|
// New creates a ledger that does nothing.
|
|
func New() ledger.Ledger {
|
|
return &provider{}
|
|
}
|
|
|
|
func (p *provider) Track(_ context.Context, _ domain.Event, _ domain.Properties) {}
|
|
func (p *provider) Close() error { return nil }
|