mock_moira_alert

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_moira_alert is a generated GoMock package.

Package mock_moira_alert is a generated GoMock package.

Package mock_moira_alert is a generated GoMock package.

Package mock_moira_alert is a generated GoMock package.

Package mock_moira_alert is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

type MockDatabase struct {
	// contains filtered or unexported fields
}

MockDatabase is a mock of Database interface

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance

func (*MockDatabase) AcquireTriggerCheckLock

func (m *MockDatabase) AcquireTriggerCheckLock(arg0 string, arg1 int) error

AcquireTriggerCheckLock mocks base method

func (*MockDatabase) AddLocalTriggersToCheck added in v2.5.0

func (m *MockDatabase) AddLocalTriggersToCheck(arg0 []string) error

AddLocalTriggersToCheck mocks base method

func (*MockDatabase) AddNotification

func (m *MockDatabase) AddNotification(arg0 *moira.ScheduledNotification) error

AddNotification mocks base method

func (*MockDatabase) AddNotifications

func (m *MockDatabase) AddNotifications(arg0 []*moira.ScheduledNotification, arg1 int64) error

AddNotifications mocks base method

func (*MockDatabase) AddPatternMetric

func (m *MockDatabase) AddPatternMetric(arg0, arg1 string) error

AddPatternMetric mocks base method

func (*MockDatabase) AddRemoteTriggersToCheck

func (m *MockDatabase) AddRemoteTriggersToCheck(arg0 []string) error

AddRemoteTriggersToCheck mocks base method

func (*MockDatabase) DeleteTriggerCheckLock

func (m *MockDatabase) DeleteTriggerCheckLock(arg0 string) error

DeleteTriggerCheckLock mocks base method

func (*MockDatabase) DeleteTriggerThrottling

func (m *MockDatabase) DeleteTriggerThrottling(arg0 string) error

DeleteTriggerThrottling mocks base method

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDatabase) FetchNotificationEvent

func (m *MockDatabase) FetchNotificationEvent() (moira.NotificationEvent, error)

FetchNotificationEvent mocks base method

func (*MockDatabase) FetchNotifications

func (m *MockDatabase) FetchNotifications(arg0 int64) ([]*moira.ScheduledNotification, error)

FetchNotifications mocks base method

func (*MockDatabase) FetchTriggersToReindex added in v2.4.0

func (m *MockDatabase) FetchTriggersToReindex(arg0 int64) ([]string, error)

FetchTriggersToReindex mocks base method

func (*MockDatabase) GetAllContacts

func (m *MockDatabase) GetAllContacts() ([]*moira.ContactData, error)

GetAllContacts mocks base method

func (*MockDatabase) GetAllTriggerIDs

func (m *MockDatabase) GetAllTriggerIDs() ([]string, error)

GetAllTriggerIDs mocks base method

func (*MockDatabase) GetChecksUpdatesCount

func (m *MockDatabase) GetChecksUpdatesCount() (int64, error)

GetChecksUpdatesCount mocks base method

func (*MockDatabase) GetContact

func (m *MockDatabase) GetContact(arg0 string) (moira.ContactData, error)

GetContact mocks base method

func (*MockDatabase) GetContacts

func (m *MockDatabase) GetContacts(arg0 []string) ([]*moira.ContactData, error)

GetContacts mocks base method

func (*MockDatabase) GetIDByUsername

func (m *MockDatabase) GetIDByUsername(arg0, arg1 string) (string, error)

GetIDByUsername mocks base method

func (*MockDatabase) GetLocalTriggerIDs added in v2.4.0

func (m *MockDatabase) GetLocalTriggerIDs() ([]string, error)

GetLocalTriggerIDs mocks base method

func (*MockDatabase) GetLocalTriggersToCheck added in v2.5.0

func (m *MockDatabase) GetLocalTriggersToCheck(arg0 int) ([]string, error)

GetLocalTriggersToCheck mocks base method

func (*MockDatabase) GetLocalTriggersToCheckCount added in v2.5.0

func (m *MockDatabase) GetLocalTriggersToCheckCount() (int64, error)

GetLocalTriggersToCheckCount mocks base method

func (*MockDatabase) GetMetricRetention

func (m *MockDatabase) GetMetricRetention(arg0 string) (int64, error)

GetMetricRetention mocks base method

func (*MockDatabase) GetMetricsUpdatesCount

func (m *MockDatabase) GetMetricsUpdatesCount() (int64, error)

GetMetricsUpdatesCount mocks base method

func (*MockDatabase) GetMetricsValues

func (m *MockDatabase) GetMetricsValues(arg0 []string, arg1, arg2 int64) (map[string][]*moira.MetricValue, error)

GetMetricsValues mocks base method

func (*MockDatabase) GetNotificationEventCount

func (m *MockDatabase) GetNotificationEventCount(arg0 string, arg1 int64) int64

GetNotificationEventCount mocks base method

func (*MockDatabase) GetNotificationEvents

func (m *MockDatabase) GetNotificationEvents(arg0 string, arg1, arg2 int64) ([]*moira.NotificationEvent, error)

GetNotificationEvents mocks base method

func (*MockDatabase) GetNotifications

func (m *MockDatabase) GetNotifications(arg0, arg1 int64) ([]*moira.ScheduledNotification, int64, error)

GetNotifications mocks base method

func (*MockDatabase) GetNotifierState

func (m *MockDatabase) GetNotifierState() (string, error)

GetNotifierState mocks base method

func (*MockDatabase) GetPatternMetrics

func (m *MockDatabase) GetPatternMetrics(arg0 string) ([]string, error)

GetPatternMetrics mocks base method

func (*MockDatabase) GetPatternTriggerIDs

func (m *MockDatabase) GetPatternTriggerIDs(arg0 string) ([]string, error)

GetPatternTriggerIDs mocks base method

func (*MockDatabase) GetPatterns

func (m *MockDatabase) GetPatterns() ([]string, error)

GetPatterns mocks base method

func (*MockDatabase) GetRemoteChecksUpdatesCount

func (m *MockDatabase) GetRemoteChecksUpdatesCount() (int64, error)

GetRemoteChecksUpdatesCount mocks base method

func (*MockDatabase) GetRemoteTriggerIDs

func (m *MockDatabase) GetRemoteTriggerIDs() ([]string, error)

GetRemoteTriggerIDs mocks base method

func (*MockDatabase) GetRemoteTriggersToCheck added in v2.5.0

func (m *MockDatabase) GetRemoteTriggersToCheck(arg0 int) ([]string, error)

GetRemoteTriggersToCheck mocks base method

func (*MockDatabase) GetRemoteTriggersToCheckCount

func (m *MockDatabase) GetRemoteTriggersToCheckCount() (int64, error)

GetRemoteTriggersToCheckCount mocks base method

func (*MockDatabase) GetSubscription

func (m *MockDatabase) GetSubscription(arg0 string) (moira.SubscriptionData, error)

GetSubscription mocks base method

func (*MockDatabase) GetSubscriptions

func (m *MockDatabase) GetSubscriptions(arg0 []string) ([]*moira.SubscriptionData, error)

GetSubscriptions mocks base method

func (*MockDatabase) GetTagNames

func (m *MockDatabase) GetTagNames() ([]string, error)

GetTagNames mocks base method

func (*MockDatabase) GetTagTriggerIDs

func (m *MockDatabase) GetTagTriggerIDs(arg0 string) ([]string, error)

GetTagTriggerIDs mocks base method

func (*MockDatabase) GetTagsSubscriptions

func (m *MockDatabase) GetTagsSubscriptions(arg0 []string) ([]*moira.SubscriptionData, error)

GetTagsSubscriptions mocks base method

func (*MockDatabase) GetTrigger

func (m *MockDatabase) GetTrigger(arg0 string) (moira.Trigger, error)

GetTrigger mocks base method

func (*MockDatabase) GetTriggerChecks

func (m *MockDatabase) GetTriggerChecks(arg0 []string) ([]*moira.TriggerCheck, error)

GetTriggerChecks mocks base method

func (*MockDatabase) GetTriggerLastCheck

func (m *MockDatabase) GetTriggerLastCheck(arg0 string) (moira.CheckData, error)

GetTriggerLastCheck mocks base method

func (*MockDatabase) GetTriggerThrottling

func (m *MockDatabase) GetTriggerThrottling(arg0 string) (time.Time, time.Time)

GetTriggerThrottling mocks base method

func (*MockDatabase) GetTriggers

func (m *MockDatabase) GetTriggers(arg0 []string) ([]*moira.Trigger, error)

GetTriggers mocks base method

func (*MockDatabase) GetUnusedTriggerIDs added in v2.4.0

func (m *MockDatabase) GetUnusedTriggerIDs() ([]string, error)

GetUnusedTriggerIDs mocks base method

func (*MockDatabase) GetUserContactIDs

func (m *MockDatabase) GetUserContactIDs(arg0 string) ([]string, error)

GetUserContactIDs mocks base method

func (*MockDatabase) GetUserSubscriptionIDs

func (m *MockDatabase) GetUserSubscriptionIDs(arg0 string) ([]string, error)

GetUserSubscriptionIDs mocks base method

func (*MockDatabase) MarkTriggersAsUnused added in v2.4.0

func (m *MockDatabase) MarkTriggersAsUnused(arg0 ...string) error

MarkTriggersAsUnused mocks base method

func (*MockDatabase) MarkTriggersAsUsed added in v2.4.0

func (m *MockDatabase) MarkTriggersAsUsed(arg0 ...string) error

MarkTriggersAsUsed mocks base method

func (*MockDatabase) NewLock added in v2.5.0

func (m *MockDatabase) NewLock(arg0 string, arg1 time.Duration) moira.Lock

NewLock mocks base method

func (*MockDatabase) PushNotificationEvent

func (m *MockDatabase) PushNotificationEvent(arg0 *moira.NotificationEvent, arg1 bool) error

PushNotificationEvent mocks base method

func (*MockDatabase) RemoveAllNotificationEvents

func (m *MockDatabase) RemoveAllNotificationEvents() error

RemoveAllNotificationEvents mocks base method

func (*MockDatabase) RemoveAllNotifications

func (m *MockDatabase) RemoveAllNotifications() error

RemoveAllNotifications mocks base method

func (*MockDatabase) RemoveContact

func (m *MockDatabase) RemoveContact(arg0 string) error

RemoveContact mocks base method

func (*MockDatabase) RemoveMetricValues

func (m *MockDatabase) RemoveMetricValues(arg0 string, arg1 int64) error

RemoveMetricValues mocks base method

func (*MockDatabase) RemoveMetricsValues

func (m *MockDatabase) RemoveMetricsValues(arg0 []string, arg1 int64) error

RemoveMetricsValues mocks base method

func (*MockDatabase) RemoveNotification

func (m *MockDatabase) RemoveNotification(arg0 string) (int64, error)

RemoveNotification mocks base method

func (*MockDatabase) RemovePattern

func (m *MockDatabase) RemovePattern(arg0 string) error

RemovePattern mocks base method

func (*MockDatabase) RemovePatternTriggerIDs

func (m *MockDatabase) RemovePatternTriggerIDs(arg0 string) error

RemovePatternTriggerIDs mocks base method

func (*MockDatabase) RemovePatternWithMetrics

func (m *MockDatabase) RemovePatternWithMetrics(arg0 string) error

RemovePatternWithMetrics mocks base method

func (*MockDatabase) RemovePatternsMetrics

func (m *MockDatabase) RemovePatternsMetrics(arg0 []string) error

RemovePatternsMetrics mocks base method

func (*MockDatabase) RemoveSubscription

func (m *MockDatabase) RemoveSubscription(arg0 string) error

RemoveSubscription mocks base method

func (*MockDatabase) RemoveTag

func (m *MockDatabase) RemoveTag(arg0 string) error

RemoveTag mocks base method

func (*MockDatabase) RemoveTrigger

func (m *MockDatabase) RemoveTrigger(arg0 string) error

RemoveTrigger mocks base method

func (*MockDatabase) RemoveTriggerLastCheck

func (m *MockDatabase) RemoveTriggerLastCheck(arg0 string) error

RemoveTriggerLastCheck mocks base method

func (*MockDatabase) RemoveTriggersToReindex added in v2.4.0

func (m *MockDatabase) RemoveTriggersToReindex(arg0 int64) error

RemoveTriggersToReindex mocks base method

func (*MockDatabase) RemoveUser

func (m *MockDatabase) RemoveUser(arg0, arg1 string) error

RemoveUser mocks base method

func (*MockDatabase) SaveContact

func (m *MockDatabase) SaveContact(arg0 *moira.ContactData) error

SaveContact mocks base method

func (*MockDatabase) SaveMetrics

func (m *MockDatabase) SaveMetrics(arg0 map[string]*moira.MatchedMetric) error

SaveMetrics mocks base method

func (*MockDatabase) SaveSubscription

func (m *MockDatabase) SaveSubscription(arg0 *moira.SubscriptionData) error

SaveSubscription mocks base method

func (*MockDatabase) SaveSubscriptions

func (m *MockDatabase) SaveSubscriptions(arg0 []*moira.SubscriptionData) error

SaveSubscriptions mocks base method

func (*MockDatabase) SaveTrigger

func (m *MockDatabase) SaveTrigger(arg0 string, arg1 *moira.Trigger) error

SaveTrigger mocks base method

func (*MockDatabase) SetNotifierState

func (m *MockDatabase) SetNotifierState(arg0 string) error

SetNotifierState mocks base method

func (*MockDatabase) SetTriggerCheckLock

func (m *MockDatabase) SetTriggerCheckLock(arg0 string) (bool, error)

SetTriggerCheckLock mocks base method

func (*MockDatabase) SetTriggerCheckMaintenance added in v2.4.0

func (m *MockDatabase) SetTriggerCheckMaintenance(arg0 string, arg1 map[string]int64, arg2 *int64, arg3 string, arg4 int64) error

SetTriggerCheckMaintenance mocks base method

func (*MockDatabase) SetTriggerLastCheck

func (m *MockDatabase) SetTriggerLastCheck(arg0 string, arg1 *moira.CheckData, arg2 bool) error

SetTriggerLastCheck mocks base method

func (*MockDatabase) SetTriggerThrottling

func (m *MockDatabase) SetTriggerThrottling(arg0 string, arg1 time.Time) error

SetTriggerThrottling mocks base method

func (*MockDatabase) SetUsernameID

func (m *MockDatabase) SetUsernameID(arg0, arg1, arg2 string) error

SetUsernameID mocks base method

func (*MockDatabase) SubscribeMetricEvents

func (m *MockDatabase) SubscribeMetricEvents(arg0 *tomb_v2.Tomb) (<-chan *moira.MetricEvent, error)

SubscribeMetricEvents mocks base method

func (*MockDatabase) UpdateMetricsHeartbeat

func (m *MockDatabase) UpdateMetricsHeartbeat() error

UpdateMetricsHeartbeat mocks base method

type MockDatabaseMockRecorder

type MockDatabaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseMockRecorder is the mock recorder for MockDatabase

func (*MockDatabaseMockRecorder) AcquireTriggerCheckLock

func (mr *MockDatabaseMockRecorder) AcquireTriggerCheckLock(arg0, arg1 interface{}) *gomock.Call

AcquireTriggerCheckLock indicates an expected call of AcquireTriggerCheckLock

func (*MockDatabaseMockRecorder) AddLocalTriggersToCheck added in v2.5.0

func (mr *MockDatabaseMockRecorder) AddLocalTriggersToCheck(arg0 interface{}) *gomock.Call

AddLocalTriggersToCheck indicates an expected call of AddLocalTriggersToCheck

func (*MockDatabaseMockRecorder) AddNotification

func (mr *MockDatabaseMockRecorder) AddNotification(arg0 interface{}) *gomock.Call

AddNotification indicates an expected call of AddNotification

func (*MockDatabaseMockRecorder) AddNotifications

func (mr *MockDatabaseMockRecorder) AddNotifications(arg0, arg1 interface{}) *gomock.Call

AddNotifications indicates an expected call of AddNotifications

func (*MockDatabaseMockRecorder) AddPatternMetric

func (mr *MockDatabaseMockRecorder) AddPatternMetric(arg0, arg1 interface{}) *gomock.Call

AddPatternMetric indicates an expected call of AddPatternMetric

func (*MockDatabaseMockRecorder) AddRemoteTriggersToCheck

func (mr *MockDatabaseMockRecorder) AddRemoteTriggersToCheck(arg0 interface{}) *gomock.Call

AddRemoteTriggersToCheck indicates an expected call of AddRemoteTriggersToCheck

func (*MockDatabaseMockRecorder) DeleteTriggerCheckLock

func (mr *MockDatabaseMockRecorder) DeleteTriggerCheckLock(arg0 interface{}) *gomock.Call

DeleteTriggerCheckLock indicates an expected call of DeleteTriggerCheckLock

func (*MockDatabaseMockRecorder) DeleteTriggerThrottling

func (mr *MockDatabaseMockRecorder) DeleteTriggerThrottling(arg0 interface{}) *gomock.Call

DeleteTriggerThrottling indicates an expected call of DeleteTriggerThrottling

func (*MockDatabaseMockRecorder) FetchNotificationEvent

func (mr *MockDatabaseMockRecorder) FetchNotificationEvent() *gomock.Call

FetchNotificationEvent indicates an expected call of FetchNotificationEvent

func (*MockDatabaseMockRecorder) FetchNotifications

func (mr *MockDatabaseMockRecorder) FetchNotifications(arg0 interface{}) *gomock.Call

FetchNotifications indicates an expected call of FetchNotifications

func (*MockDatabaseMockRecorder) FetchTriggersToReindex added in v2.4.0

func (mr *MockDatabaseMockRecorder) FetchTriggersToReindex(arg0 interface{}) *gomock.Call

FetchTriggersToReindex indicates an expected call of FetchTriggersToReindex

func (*MockDatabaseMockRecorder) GetAllContacts

func (mr *MockDatabaseMockRecorder) GetAllContacts() *gomock.Call

GetAllContacts indicates an expected call of GetAllContacts

func (*MockDatabaseMockRecorder) GetAllTriggerIDs

func (mr *MockDatabaseMockRecorder) GetAllTriggerIDs() *gomock.Call

GetAllTriggerIDs indicates an expected call of GetAllTriggerIDs

func (*MockDatabaseMockRecorder) GetChecksUpdatesCount

func (mr *MockDatabaseMockRecorder) GetChecksUpdatesCount() *gomock.Call

GetChecksUpdatesCount indicates an expected call of GetChecksUpdatesCount

func (*MockDatabaseMockRecorder) GetContact

func (mr *MockDatabaseMockRecorder) GetContact(arg0 interface{}) *gomock.Call

GetContact indicates an expected call of GetContact

func (*MockDatabaseMockRecorder) GetContacts

func (mr *MockDatabaseMockRecorder) GetContacts(arg0 interface{}) *gomock.Call

GetContacts indicates an expected call of GetContacts

func (*MockDatabaseMockRecorder) GetIDByUsername

func (mr *MockDatabaseMockRecorder) GetIDByUsername(arg0, arg1 interface{}) *gomock.Call

GetIDByUsername indicates an expected call of GetIDByUsername

func (*MockDatabaseMockRecorder) GetLocalTriggerIDs added in v2.4.0

func (mr *MockDatabaseMockRecorder) GetLocalTriggerIDs() *gomock.Call

GetLocalTriggerIDs indicates an expected call of GetLocalTriggerIDs

func (*MockDatabaseMockRecorder) GetLocalTriggersToCheck added in v2.5.0

func (mr *MockDatabaseMockRecorder) GetLocalTriggersToCheck(arg0 interface{}) *gomock.Call

GetLocalTriggersToCheck indicates an expected call of GetLocalTriggersToCheck

func (*MockDatabaseMockRecorder) GetLocalTriggersToCheckCount added in v2.5.0

func (mr *MockDatabaseMockRecorder) GetLocalTriggersToCheckCount() *gomock.Call

GetLocalTriggersToCheckCount indicates an expected call of GetLocalTriggersToCheckCount

func (*MockDatabaseMockRecorder) GetMetricRetention

func (mr *MockDatabaseMockRecorder) GetMetricRetention(arg0 interface{}) *gomock.Call

GetMetricRetention indicates an expected call of GetMetricRetention

func (*MockDatabaseMockRecorder) GetMetricsUpdatesCount

func (mr *MockDatabaseMockRecorder) GetMetricsUpdatesCount() *gomock.Call

GetMetricsUpdatesCount indicates an expected call of GetMetricsUpdatesCount

func (*MockDatabaseMockRecorder) GetMetricsValues

func (mr *MockDatabaseMockRecorder) GetMetricsValues(arg0, arg1, arg2 interface{}) *gomock.Call

GetMetricsValues indicates an expected call of GetMetricsValues

func (*MockDatabaseMockRecorder) GetNotificationEventCount

func (mr *MockDatabaseMockRecorder) GetNotificationEventCount(arg0, arg1 interface{}) *gomock.Call

GetNotificationEventCount indicates an expected call of GetNotificationEventCount

func (*MockDatabaseMockRecorder) GetNotificationEvents

func (mr *MockDatabaseMockRecorder) GetNotificationEvents(arg0, arg1, arg2 interface{}) *gomock.Call

GetNotificationEvents indicates an expected call of GetNotificationEvents

func (*MockDatabaseMockRecorder) GetNotifications

func (mr *MockDatabaseMockRecorder) GetNotifications(arg0, arg1 interface{}) *gomock.Call

GetNotifications indicates an expected call of GetNotifications

func (*MockDatabaseMockRecorder) GetNotifierState

func (mr *MockDatabaseMockRecorder) GetNotifierState() *gomock.Call

GetNotifierState indicates an expected call of GetNotifierState

func (*MockDatabaseMockRecorder) GetPatternMetrics

func (mr *MockDatabaseMockRecorder) GetPatternMetrics(arg0 interface{}) *gomock.Call

GetPatternMetrics indicates an expected call of GetPatternMetrics

func (*MockDatabaseMockRecorder) GetPatternTriggerIDs

func (mr *MockDatabaseMockRecorder) GetPatternTriggerIDs(arg0 interface{}) *gomock.Call

GetPatternTriggerIDs indicates an expected call of GetPatternTriggerIDs

func (*MockDatabaseMockRecorder) GetPatterns

func (mr *MockDatabaseMockRecorder) GetPatterns() *gomock.Call

GetPatterns indicates an expected call of GetPatterns

func (*MockDatabaseMockRecorder) GetRemoteChecksUpdatesCount

func (mr *MockDatabaseMockRecorder) GetRemoteChecksUpdatesCount() *gomock.Call

GetRemoteChecksUpdatesCount indicates an expected call of GetRemoteChecksUpdatesCount

func (*MockDatabaseMockRecorder) GetRemoteTriggerIDs

func (mr *MockDatabaseMockRecorder) GetRemoteTriggerIDs() *gomock.Call

GetRemoteTriggerIDs indicates an expected call of GetRemoteTriggerIDs

func (*MockDatabaseMockRecorder) GetRemoteTriggersToCheck added in v2.5.0

func (mr *MockDatabaseMockRecorder) GetRemoteTriggersToCheck(arg0 interface{}) *gomock.Call

GetRemoteTriggersToCheck indicates an expected call of GetRemoteTriggersToCheck

func (*MockDatabaseMockRecorder) GetRemoteTriggersToCheckCount

func (mr *MockDatabaseMockRecorder) GetRemoteTriggersToCheckCount() *gomock.Call

GetRemoteTriggersToCheckCount indicates an expected call of GetRemoteTriggersToCheckCount

func (*MockDatabaseMockRecorder) GetSubscription

func (mr *MockDatabaseMockRecorder) GetSubscription(arg0 interface{}) *gomock.Call

GetSubscription indicates an expected call of GetSubscription

func (*MockDatabaseMockRecorder) GetSubscriptions

func (mr *MockDatabaseMockRecorder) GetSubscriptions(arg0 interface{}) *gomock.Call

GetSubscriptions indicates an expected call of GetSubscriptions

func (*MockDatabaseMockRecorder) GetTagNames

func (mr *MockDatabaseMockRecorder) GetTagNames() *gomock.Call

GetTagNames indicates an expected call of GetTagNames

func (*MockDatabaseMockRecorder) GetTagTriggerIDs

func (mr *MockDatabaseMockRecorder) GetTagTriggerIDs(arg0 interface{}) *gomock.Call

GetTagTriggerIDs indicates an expected call of GetTagTriggerIDs

func (*MockDatabaseMockRecorder) GetTagsSubscriptions

func (mr *MockDatabaseMockRecorder) GetTagsSubscriptions(arg0 interface{}) *gomock.Call

GetTagsSubscriptions indicates an expected call of GetTagsSubscriptions

func (*MockDatabaseMockRecorder) GetTrigger

func (mr *MockDatabaseMockRecorder) GetTrigger(arg0 interface{}) *gomock.Call

GetTrigger indicates an expected call of GetTrigger

func (*MockDatabaseMockRecorder) GetTriggerChecks

func (mr *MockDatabaseMockRecorder) GetTriggerChecks(arg0 interface{}) *gomock.Call

GetTriggerChecks indicates an expected call of GetTriggerChecks

func (*MockDatabaseMockRecorder) GetTriggerLastCheck

func (mr *MockDatabaseMockRecorder) GetTriggerLastCheck(arg0 interface{}) *gomock.Call

GetTriggerLastCheck indicates an expected call of GetTriggerLastCheck

func (*MockDatabaseMockRecorder) GetTriggerThrottling

func (mr *MockDatabaseMockRecorder) GetTriggerThrottling(arg0 interface{}) *gomock.Call

GetTriggerThrottling indicates an expected call of GetTriggerThrottling

func (*MockDatabaseMockRecorder) GetTriggers

func (mr *MockDatabaseMockRecorder) GetTriggers(arg0 interface{}) *gomock.Call

GetTriggers indicates an expected call of GetTriggers

func (*MockDatabaseMockRecorder) GetUnusedTriggerIDs added in v2.4.0

func (mr *MockDatabaseMockRecorder) GetUnusedTriggerIDs() *gomock.Call

GetUnusedTriggerIDs indicates an expected call of GetUnusedTriggerIDs

func (*MockDatabaseMockRecorder) GetUserContactIDs

func (mr *MockDatabaseMockRecorder) GetUserContactIDs(arg0 interface{}) *gomock.Call

GetUserContactIDs indicates an expected call of GetUserContactIDs

func (*MockDatabaseMockRecorder) GetUserSubscriptionIDs

func (mr *MockDatabaseMockRecorder) GetUserSubscriptionIDs(arg0 interface{}) *gomock.Call

GetUserSubscriptionIDs indicates an expected call of GetUserSubscriptionIDs

func (*MockDatabaseMockRecorder) MarkTriggersAsUnused added in v2.4.0

func (mr *MockDatabaseMockRecorder) MarkTriggersAsUnused(arg0 ...interface{}) *gomock.Call

MarkTriggersAsUnused indicates an expected call of MarkTriggersAsUnused

func (*MockDatabaseMockRecorder) MarkTriggersAsUsed added in v2.4.0

func (mr *MockDatabaseMockRecorder) MarkTriggersAsUsed(arg0 ...interface{}) *gomock.Call

MarkTriggersAsUsed indicates an expected call of MarkTriggersAsUsed

func (*MockDatabaseMockRecorder) NewLock added in v2.5.0

func (mr *MockDatabaseMockRecorder) NewLock(arg0, arg1 interface{}) *gomock.Call

NewLock indicates an expected call of NewLock

func (*MockDatabaseMockRecorder) PushNotificationEvent

func (mr *MockDatabaseMockRecorder) PushNotificationEvent(arg0, arg1 interface{}) *gomock.Call

PushNotificationEvent indicates an expected call of PushNotificationEvent

func (*MockDatabaseMockRecorder) RemoveAllNotificationEvents

func (mr *MockDatabaseMockRecorder) RemoveAllNotificationEvents() *gomock.Call

RemoveAllNotificationEvents indicates an expected call of RemoveAllNotificationEvents

func (*MockDatabaseMockRecorder) RemoveAllNotifications

func (mr *MockDatabaseMockRecorder) RemoveAllNotifications() *gomock.Call

RemoveAllNotifications indicates an expected call of RemoveAllNotifications

func (*MockDatabaseMockRecorder) RemoveContact

func (mr *MockDatabaseMockRecorder) RemoveContact(arg0 interface{}) *gomock.Call

RemoveContact indicates an expected call of RemoveContact

func (*MockDatabaseMockRecorder) RemoveMetricValues

func (mr *MockDatabaseMockRecorder) RemoveMetricValues(arg0, arg1 interface{}) *gomock.Call

RemoveMetricValues indicates an expected call of RemoveMetricValues

func (*MockDatabaseMockRecorder) RemoveMetricsValues

func (mr *MockDatabaseMockRecorder) RemoveMetricsValues(arg0, arg1 interface{}) *gomock.Call

RemoveMetricsValues indicates an expected call of RemoveMetricsValues

func (*MockDatabaseMockRecorder) RemoveNotification

func (mr *MockDatabaseMockRecorder) RemoveNotification(arg0 interface{}) *gomock.Call

RemoveNotification indicates an expected call of RemoveNotification

func (*MockDatabaseMockRecorder) RemovePattern

func (mr *MockDatabaseMockRecorder) RemovePattern(arg0 interface{}) *gomock.Call

RemovePattern indicates an expected call of RemovePattern

func (*MockDatabaseMockRecorder) RemovePatternTriggerIDs

func (mr *MockDatabaseMockRecorder) RemovePatternTriggerIDs(arg0 interface{}) *gomock.Call

RemovePatternTriggerIDs indicates an expected call of RemovePatternTriggerIDs

func (*MockDatabaseMockRecorder) RemovePatternWithMetrics

func (mr *MockDatabaseMockRecorder) RemovePatternWithMetrics(arg0 interface{}) *gomock.Call

RemovePatternWithMetrics indicates an expected call of RemovePatternWithMetrics

func (*MockDatabaseMockRecorder) RemovePatternsMetrics

func (mr *MockDatabaseMockRecorder) RemovePatternsMetrics(arg0 interface{}) *gomock.Call

RemovePatternsMetrics indicates an expected call of RemovePatternsMetrics

func (*MockDatabaseMockRecorder) RemoveSubscription

func (mr *MockDatabaseMockRecorder) RemoveSubscription(arg0 interface{}) *gomock.Call

RemoveSubscription indicates an expected call of RemoveSubscription

func (*MockDatabaseMockRecorder) RemoveTag

func (mr *MockDatabaseMockRecorder) RemoveTag(arg0 interface{}) *gomock.Call

RemoveTag indicates an expected call of RemoveTag

func (*MockDatabaseMockRecorder) RemoveTrigger

func (mr *MockDatabaseMockRecorder) RemoveTrigger(arg0 interface{}) *gomock.Call

RemoveTrigger indicates an expected call of RemoveTrigger

func (*MockDatabaseMockRecorder) RemoveTriggerLastCheck

func (mr *MockDatabaseMockRecorder) RemoveTriggerLastCheck(arg0 interface{}) *gomock.Call

RemoveTriggerLastCheck indicates an expected call of RemoveTriggerLastCheck

func (*MockDatabaseMockRecorder) RemoveTriggersToReindex added in v2.4.0

func (mr *MockDatabaseMockRecorder) RemoveTriggersToReindex(arg0 interface{}) *gomock.Call

RemoveTriggersToReindex indicates an expected call of RemoveTriggersToReindex

func (*MockDatabaseMockRecorder) RemoveUser

func (mr *MockDatabaseMockRecorder) RemoveUser(arg0, arg1 interface{}) *gomock.Call

RemoveUser indicates an expected call of RemoveUser

func (*MockDatabaseMockRecorder) SaveContact

func (mr *MockDatabaseMockRecorder) SaveContact(arg0 interface{}) *gomock.Call

SaveContact indicates an expected call of SaveContact

func (*MockDatabaseMockRecorder) SaveMetrics

func (mr *MockDatabaseMockRecorder) SaveMetrics(arg0 interface{}) *gomock.Call

SaveMetrics indicates an expected call of SaveMetrics

func (*MockDatabaseMockRecorder) SaveSubscription

func (mr *MockDatabaseMockRecorder) SaveSubscription(arg0 interface{}) *gomock.Call

SaveSubscription indicates an expected call of SaveSubscription

func (*MockDatabaseMockRecorder) SaveSubscriptions

func (mr *MockDatabaseMockRecorder) SaveSubscriptions(arg0 interface{}) *gomock.Call

SaveSubscriptions indicates an expected call of SaveSubscriptions

func (*MockDatabaseMockRecorder) SaveTrigger

func (mr *MockDatabaseMockRecorder) SaveTrigger(arg0, arg1 interface{}) *gomock.Call

SaveTrigger indicates an expected call of SaveTrigger

func (*MockDatabaseMockRecorder) SetNotifierState

func (mr *MockDatabaseMockRecorder) SetNotifierState(arg0 interface{}) *gomock.Call

SetNotifierState indicates an expected call of SetNotifierState

func (*MockDatabaseMockRecorder) SetTriggerCheckLock

func (mr *MockDatabaseMockRecorder) SetTriggerCheckLock(arg0 interface{}) *gomock.Call

SetTriggerCheckLock indicates an expected call of SetTriggerCheckLock

func (*MockDatabaseMockRecorder) SetTriggerCheckMaintenance added in v2.4.0

func (mr *MockDatabaseMockRecorder) SetTriggerCheckMaintenance(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SetTriggerCheckMaintenance indicates an expected call of SetTriggerCheckMaintenance

func (*MockDatabaseMockRecorder) SetTriggerLastCheck

func (mr *MockDatabaseMockRecorder) SetTriggerLastCheck(arg0, arg1, arg2 interface{}) *gomock.Call

SetTriggerLastCheck indicates an expected call of SetTriggerLastCheck

func (*MockDatabaseMockRecorder) SetTriggerThrottling

func (mr *MockDatabaseMockRecorder) SetTriggerThrottling(arg0, arg1 interface{}) *gomock.Call

SetTriggerThrottling indicates an expected call of SetTriggerThrottling

func (*MockDatabaseMockRecorder) SetUsernameID

func (mr *MockDatabaseMockRecorder) SetUsernameID(arg0, arg1, arg2 interface{}) *gomock.Call

SetUsernameID indicates an expected call of SetUsernameID

func (*MockDatabaseMockRecorder) SubscribeMetricEvents

func (mr *MockDatabaseMockRecorder) SubscribeMetricEvents(arg0 interface{}) *gomock.Call

SubscribeMetricEvents indicates an expected call of SubscribeMetricEvents

func (*MockDatabaseMockRecorder) UpdateMetricsHeartbeat

func (mr *MockDatabaseMockRecorder) UpdateMetricsHeartbeat() *gomock.Call

UpdateMetricsHeartbeat indicates an expected call of UpdateMetricsHeartbeat

type MockLock added in v2.5.0

type MockLock struct {
	// contains filtered or unexported fields
}

MockLock is a mock of Lock interface

func NewMockLock added in v2.5.0

func NewMockLock(ctrl *gomock.Controller) *MockLock

NewMockLock creates a new mock instance

func (*MockLock) Acquire added in v2.5.0

func (m *MockLock) Acquire(arg0 <-chan struct{}) (<-chan struct{}, error)

Acquire mocks base method

func (*MockLock) EXPECT added in v2.5.0

func (m *MockLock) EXPECT() *MockLockMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLock) Release added in v2.5.0

func (m *MockLock) Release()

Release mocks base method

type MockLockMockRecorder added in v2.5.0

type MockLockMockRecorder struct {
	// contains filtered or unexported fields
}

MockLockMockRecorder is the mock recorder for MockLock

func (*MockLockMockRecorder) Acquire added in v2.5.0

func (mr *MockLockMockRecorder) Acquire(arg0 interface{}) *gomock.Call

Acquire indicates an expected call of Acquire

func (*MockLockMockRecorder) Release added in v2.5.0

func (mr *MockLockMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release

type MockLogger

type MockLogger struct {
	// contains filtered or unexported fields
}

MockLogger is a mock of Logger interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func (*MockLogger) Debug

func (m *MockLogger) Debug(arg0 ...interface{})

Debug mocks base method

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{})

Debugf mocks base method

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLogger) Error

func (m *MockLogger) Error(arg0 ...interface{})

Error mocks base method

func (*MockLogger) Errorf

func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})

Errorf mocks base method

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(arg0 ...interface{})

Fatal mocks base method

func (*MockLogger) Fatalf

func (m *MockLogger) Fatalf(arg0 string, arg1 ...interface{})

Fatalf mocks base method

func (*MockLogger) Info

func (m *MockLogger) Info(arg0 ...interface{})

Info mocks base method

func (*MockLogger) Infof

func (m *MockLogger) Infof(arg0 string, arg1 ...interface{})

Infof mocks base method

func (*MockLogger) Warning

func (m *MockLogger) Warning(arg0 ...interface{})

Warning mocks base method

func (*MockLogger) Warningf

func (m *MockLogger) Warningf(arg0 string, arg1 ...interface{})

Warningf mocks base method

type MockLoggerMockRecorder

type MockLoggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(arg0 ...interface{}) *gomock.Call

Debug indicates an expected call of Debug

func (*MockLoggerMockRecorder) Debugf

func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(arg0 ...interface{}) *gomock.Call

Error indicates an expected call of Error

func (*MockLoggerMockRecorder) Errorf

func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(arg0 ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal

func (*MockLoggerMockRecorder) Fatalf

func (mr *MockLoggerMockRecorder) Fatalf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Fatalf indicates an expected call of Fatalf

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(arg0 ...interface{}) *gomock.Call

Info indicates an expected call of Info

func (*MockLoggerMockRecorder) Infof

func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Infof indicates an expected call of Infof

func (*MockLoggerMockRecorder) Warning

func (mr *MockLoggerMockRecorder) Warning(arg0 ...interface{}) *gomock.Call

Warning indicates an expected call of Warning

func (*MockLoggerMockRecorder) Warningf

func (mr *MockLoggerMockRecorder) Warningf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Warningf indicates an expected call of Warningf

type MockSearcher added in v2.4.0

type MockSearcher struct {
	// contains filtered or unexported fields
}

MockSearcher is a mock of Searcher interface

func NewMockSearcher added in v2.4.0

func NewMockSearcher(ctrl *gomock.Controller) *MockSearcher

NewMockSearcher creates a new mock instance

func (*MockSearcher) EXPECT added in v2.4.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSearcher) IsReady added in v2.4.0

func (m *MockSearcher) IsReady() bool

IsReady mocks base method

func (*MockSearcher) SearchTriggers added in v2.4.0

func (m *MockSearcher) SearchTriggers(arg0 []string, arg1 string, arg2 bool, arg3, arg4 int64) ([]*moira.SearchResult, int64, error)

SearchTriggers mocks base method

func (*MockSearcher) Start added in v2.4.0

func (m *MockSearcher) Start() error

Start mocks base method

func (*MockSearcher) Stop added in v2.4.0

func (m *MockSearcher) Stop() error

Stop mocks base method

type MockSearcherMockRecorder added in v2.4.0

type MockSearcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockSearcherMockRecorder is the mock recorder for MockSearcher

func (*MockSearcherMockRecorder) IsReady added in v2.4.0

func (mr *MockSearcherMockRecorder) IsReady() *gomock.Call

IsReady indicates an expected call of IsReady

func (*MockSearcherMockRecorder) SearchTriggers added in v2.4.0

func (mr *MockSearcherMockRecorder) SearchTriggers(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SearchTriggers indicates an expected call of SearchTriggers

func (*MockSearcherMockRecorder) Start added in v2.4.0

func (mr *MockSearcherMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockSearcherMockRecorder) Stop added in v2.4.0

func (mr *MockSearcherMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop

type MockSender

type MockSender struct {
	// contains filtered or unexported fields
}

MockSender is a mock of Sender interface

func NewMockSender

func NewMockSender(ctrl *gomock.Controller) *MockSender

NewMockSender creates a new mock instance

func (*MockSender) EXPECT

func (m *MockSender) EXPECT() *MockSenderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSender) Init

func (m *MockSender) Init(arg0 map[string]string, arg1 moira.Logger, arg2 *time.Location, arg3 string) error

Init mocks base method

func (*MockSender) SendEvents

func (m *MockSender) SendEvents(arg0 moira.NotificationEvents, arg1 moira.ContactData, arg2 moira.TriggerData, arg3 []byte, arg4 bool) error

SendEvents mocks base method

type MockSenderMockRecorder

type MockSenderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSenderMockRecorder is the mock recorder for MockSender

func (*MockSenderMockRecorder) Init

func (mr *MockSenderMockRecorder) Init(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Init indicates an expected call of Init

func (*MockSenderMockRecorder) SendEvents

func (mr *MockSenderMockRecorder) SendEvents(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SendEvents indicates an expected call of SendEvents

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL