zen/core/znotify/znotify.go

18 lines
312 B
Go

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
}