Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNotifier ¶
MockNotifier is an autogenerated mock type for the Notifier type
func NewMockNotifier ¶
func NewMockNotifier(t mockConstructorTestingTNewMockNotifier) *MockNotifier
NewMockNotifier creates a new instance of MockNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockNotifier) Send ¶
func (_m *MockNotifier) Send(value Notification) error
Send provides a mock function with given fields: value
type Notification ¶
type NotificationPublisher ¶
type NotificationPublisher = observer.Publisher[Notification]
type NotificationSubscriber ¶
type NotificationSubscriber = observer.Subscriber[Notification]
type Notifier ¶
type Notifier interface {
Send(value Notification) error
}
type NotifyManager ¶
type NotifyManager interface { Start() Notify(reviewResult review.ReviewResult) }
func New ¶
func New(config config.Config, reviewResultSubscriber review.ReviewResultSubscriber, notificationPublisher NotificationPublisher, lookoutRepo lookout.LookoutRepo, localNotifier Notifier, mailNotifier Notifier) NotifyManager
Click to show internal directories.
Click to hide internal directories.