zen/core/znotify/znotify.go

18 lines
312 B
Go
Raw Normal View History

2024-09-03 13:38:45 +07:00
package znotify
import (
"gitlab.bareksa.com/backend/zen/core/zerr"
"gitlab.bareksa.com/backend/zen/core/zlog"
)
type Notifier interface {
zerr.NotificationHandler
zlog.NotificationHandler
}
var DefaultNotifier Notifier = Null{}
func SetDefaultNotifier(notifier Notifier) {
DefaultNotifier = notifier
}