zen/core/zerr/notifier.go

16 lines
328 B
Go
Raw Permalink Normal View History

2024-09-03 13:38:45 +07:00
package zerr
import (
"context"
"gitlab.bareksa.com/backend/zen/core/zoptions"
)
type NotificationHandler interface {
NotifyError(ctx context.Context, err Error, opts ...zoptions.NotifyOption)
}
type NullNotifier struct{}
func (NullNotifier) NotifyError(ctx context.Context, err Error, opts ...zoptions.NotifyOption) {}