notify

package
v0.0.0-...-56aa9b5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNotifier

type MockNotifier struct {
	mock.Mock
}

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 Notification struct {
	LookoutId   int
	RuleId      int
	Title       string
	Description string
	Timestamp   time.Time
}

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

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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