mocks

package
v1.2.2-dev.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBClient

type DBClient struct {
	mock.Mock
}

DBClient is an autogenerated mock type for the DBClient type

func (*DBClient) AddNotification

func (_m *DBClient) AddNotification(n models.Notification) (string, error)

AddNotification provides a mock function with given fields: n

func (*DBClient) AddSubscription

func (_m *DBClient) AddSubscription(s models.Subscription) (string, error)

AddSubscription provides a mock function with given fields: s

func (*DBClient) AddTransmission

func (_m *DBClient) AddTransmission(t models.Transmission) (string, error)

AddTransmission provides a mock function with given fields: t

func (*DBClient) Cleanup

func (_m *DBClient) Cleanup() error

Cleanup provides a mock function with given fields:

func (*DBClient) CleanupOld

func (_m *DBClient) CleanupOld(age int) error

CleanupOld provides a mock function with given fields: age

func (*DBClient) CloseSession

func (_m *DBClient) CloseSession()

CloseSession provides a mock function with given fields:

func (*DBClient) DeleteNotificationById

func (_m *DBClient) DeleteNotificationById(id string) error

DeleteNotificationById provides a mock function with given fields: id

func (*DBClient) DeleteNotificationBySlug

func (_m *DBClient) DeleteNotificationBySlug(id string) error

DeleteNotificationBySlug provides a mock function with given fields: id

func (*DBClient) DeleteNotificationsOld

func (_m *DBClient) DeleteNotificationsOld(age int) error

DeleteNotificationsOld provides a mock function with given fields: age

func (*DBClient) DeleteSubscriptionById

func (_m *DBClient) DeleteSubscriptionById(id string) error

DeleteSubscriptionById provides a mock function with given fields: id

func (*DBClient) DeleteSubscriptionBySlug

func (_m *DBClient) DeleteSubscriptionBySlug(id string) error

DeleteSubscriptionBySlug provides a mock function with given fields: id

func (*DBClient) DeleteTransmission

func (_m *DBClient) DeleteTransmission(age int64, status models.TransmissionStatus) error

DeleteTransmission provides a mock function with given fields: age, status

func (*DBClient) GetNewNormalNotifications

func (_m *DBClient) GetNewNormalNotifications(limit int) ([]models.Notification, error)

GetNewNormalNotifications provides a mock function with given fields: limit

func (*DBClient) GetNewNotifications

func (_m *DBClient) GetNewNotifications(limit int) ([]models.Notification, error)

GetNewNotifications provides a mock function with given fields: limit

func (*DBClient) GetNotificationById

func (_m *DBClient) GetNotificationById(id string) (models.Notification, error)

GetNotificationById provides a mock function with given fields: id

func (*DBClient) GetNotificationBySender

func (_m *DBClient) GetNotificationBySender(sender string, limit int) ([]models.Notification, error)

GetNotificationBySender provides a mock function with given fields: sender, limit

func (*DBClient) GetNotificationBySlug

func (_m *DBClient) GetNotificationBySlug(slug string) (models.Notification, error)

GetNotificationBySlug provides a mock function with given fields: slug

func (*DBClient) GetNotifications

func (_m *DBClient) GetNotifications() ([]models.Notification, error)

GetNotifications provides a mock function with given fields:

func (*DBClient) GetNotificationsByEnd

func (_m *DBClient) GetNotificationsByEnd(end int64, limit int) ([]models.Notification, error)

GetNotificationsByEnd provides a mock function with given fields: end, limit

func (*DBClient) GetNotificationsByLabels

func (_m *DBClient) GetNotificationsByLabels(labels []string, limit int) ([]models.Notification, error)

GetNotificationsByLabels provides a mock function with given fields: labels, limit

func (*DBClient) GetNotificationsByStart

func (_m *DBClient) GetNotificationsByStart(start int64, limit int) ([]models.Notification, error)

GetNotificationsByStart provides a mock function with given fields: start, limit

func (*DBClient) GetNotificationsByStartEnd

func (_m *DBClient) GetNotificationsByStartEnd(start int64, end int64, limit int) ([]models.Notification, error)

GetNotificationsByStartEnd provides a mock function with given fields: start, end, limit

func (*DBClient) GetSubscriptionByCategories

func (_m *DBClient) GetSubscriptionByCategories(categories []string) ([]models.Subscription, error)

GetSubscriptionByCategories provides a mock function with given fields: categories

func (*DBClient) GetSubscriptionByCategoriesLabels

func (_m *DBClient) GetSubscriptionByCategoriesLabels(categories []string, labels []string) ([]models.Subscription, error)

GetSubscriptionByCategoriesLabels provides a mock function with given fields: categories, labels

func (*DBClient) GetSubscriptionById

func (_m *DBClient) GetSubscriptionById(id string) (models.Subscription, error)

GetSubscriptionById provides a mock function with given fields: id

func (*DBClient) GetSubscriptionByLabels

func (_m *DBClient) GetSubscriptionByLabels(labels []string) ([]models.Subscription, error)

GetSubscriptionByLabels provides a mock function with given fields: labels

func (*DBClient) GetSubscriptionByReceiver

func (_m *DBClient) GetSubscriptionByReceiver(receiver string) ([]models.Subscription, error)

GetSubscriptionByReceiver provides a mock function with given fields: receiver

func (*DBClient) GetSubscriptionBySlug

func (_m *DBClient) GetSubscriptionBySlug(slug string) (models.Subscription, error)

GetSubscriptionBySlug provides a mock function with given fields: slug

func (*DBClient) GetSubscriptions

func (_m *DBClient) GetSubscriptions() ([]models.Subscription, error)

GetSubscriptions provides a mock function with given fields:

func (*DBClient) GetTransmissionById

func (_m *DBClient) GetTransmissionById(id string) (models.Transmission, error)

GetTransmissionById provides a mock function with given fields: id

func (*DBClient) GetTransmissionsByEnd

func (_m *DBClient) GetTransmissionsByEnd(end int64, limit int) ([]models.Transmission, error)

GetTransmissionsByEnd provides a mock function with given fields: end, limit

func (*DBClient) GetTransmissionsByNotificationSlug

func (_m *DBClient) GetTransmissionsByNotificationSlug(slug string, limit int) ([]models.Transmission, error)

GetTransmissionsByNotificationSlug provides a mock function with given fields: slug, limit

func (*DBClient) GetTransmissionsByNotificationSlugAndStartEnd

func (_m *DBClient) GetTransmissionsByNotificationSlugAndStartEnd(slug string, start int64, end int64, limit int) ([]models.Transmission, error)

GetTransmissionsByNotificationSlugAndStartEnd provides a mock function with given fields: slug, start, end, limit

func (*DBClient) GetTransmissionsByStart

func (_m *DBClient) GetTransmissionsByStart(start int64, limit int) ([]models.Transmission, error)

GetTransmissionsByStart provides a mock function with given fields: start, limit

func (*DBClient) GetTransmissionsByStartEnd

func (_m *DBClient) GetTransmissionsByStartEnd(start int64, end int64, limit int) ([]models.Transmission, error)

GetTransmissionsByStartEnd provides a mock function with given fields: start, end, limit

func (*DBClient) GetTransmissionsByStatus

func (_m *DBClient) GetTransmissionsByStatus(limit int, status models.TransmissionStatus) ([]models.Transmission, error)

GetTransmissionsByStatus provides a mock function with given fields: limit, status

func (*DBClient) MarkNotificationProcessed

func (_m *DBClient) MarkNotificationProcessed(n models.Notification) error

MarkNotificationProcessed provides a mock function with given fields: n

func (*DBClient) UpdateNotification

func (_m *DBClient) UpdateNotification(n models.Notification) error

UpdateNotification provides a mock function with given fields: n

func (*DBClient) UpdateSubscription

func (_m *DBClient) UpdateSubscription(s models.Subscription) error

UpdateSubscription provides a mock function with given fields: s

func (*DBClient) UpdateTransmission

func (_m *DBClient) UpdateTransmission(t models.Transmission) error

UpdateTransmission provides a mock function with given fields: t

Jump to

Keyboard shortcuts

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