implement streaming notifications

This commit is contained in:
tsmethurst 2021-06-19 10:47:05 +02:00
commit 03a6f387e2
9 changed files with 152 additions and 29 deletions

View file

@ -20,6 +20,7 @@ type Processor interface {
AuthorizeStreamingRequest(accessToken string) (*gtsmodel.Account, error)
OpenStreamForAccount(account *gtsmodel.Account, streamType string) (*gtsmodel.Stream, gtserror.WithCode)
StreamStatusToAccount(s *apimodel.Status, account *gtsmodel.Account) error
StreamNotificationToAccount(n *apimodel.Notification, account *gtsmodel.Account) error
}
type processor struct {