Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetTestDatabase ¶
func ResetTestDatabase(dbmap *gorp.DbMap)
Types ¶
type LogrusTestHook ¶
func NewLogrusTestHook ¶
func NewLogrusTestHook() *LogrusTestHook
func (*LogrusTestHook) ClearLogs ¶
func (h *LogrusTestHook) ClearLogs()
func (*LogrusTestHook) HasMessage ¶
func (h *LogrusTestHook) HasMessage(level logrus.Level, message string) bool
func (*LogrusTestHook) Levels ¶
func (h *LogrusTestHook) Levels() []logrus.Level
type NotificationSubscriberCombo ¶
type NotificationSubscriberCombo struct { Notifications []backend.Notification Subscriber backend.Subscriber }
type TestNotifier ¶
type TestNotifier struct { *sync.Mutex Logs []*NotificationSubscriberCombo }
func NewTestNotifier ¶
func NewTestNotifier() *TestNotifier
func (*TestNotifier) Name ¶
func (n *TestNotifier) Name() string
func (*TestNotifier) Send ¶
func (n *TestNotifier) Send(notifications []backend.Notification, subscriber backend.Subscriber) error
func (*TestNotifier) ShouldSendImmediately ¶
func (n *TestNotifier) ShouldSendImmediately() bool
Click to show internal directories.
Click to hide internal directories.