Documentation
¶
Overview ¶
Package dispatcher contains the dispatcher service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher is a service that fetches items from feeds and forwards them to webhooks.
func (*Dispatcher) Close ¶
func (d *Dispatcher) Close()
Close conducts a graceful shutdown of the dispatcher.
func (*Dispatcher) MessengerStatus ¶
func (d *Dispatcher) MessengerStatus(webhookName string) (messenger.Status, error)
MessengerStatus returns the current status of a messenger.
func (*Dispatcher) PostLatestFeedItem ¶
func (d *Dispatcher) PostLatestFeedItem(feedName string) error
func (*Dispatcher) Start ¶
func (d *Dispatcher) Start() error
Start starts the dispatcher User should call Close() subsequently to shut down dispatcher gracefully and prevent any potential data loss.
Click to show internal directories.
Click to hide internal directories.