19 lines
289 B
Go
19 lines
289 B
Go
package zlog
|
|
|
|
import (
|
|
"context"
|
|
"log/slog"
|
|
|
|
"gitlab.bareksa.com/backend/zen/core/zoptions"
|
|
)
|
|
|
|
type Notifier interface {
|
|
Notify(options ...zoptions.NotifyOption)
|
|
}
|
|
|
|
type NotificationHandler interface {
|
|
NotifyLog(ctx context.Context, record slog.Record)
|
|
}
|
|
|
|
type notifyHandler struct{}
|