zen/core/znotify/null.go

16 lines
361 B
Go
Raw Permalink Normal View History

2024-09-03 13:38:45 +07:00
package znotify
import (
"context"
"log/slog"
"gitlab.bareksa.com/backend/zen/core/zerr"
"gitlab.bareksa.com/backend/zen/core/zoptions"
)
type Null struct{}
func (Null) NotifyError(ctx context.Context, err zerr.Error, opts ...zoptions.NotifyOption) {}
func (Null) NotifyLog(ctx context.Context, record slog.Record, options ...zoptions.NotifyOption) {}