mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
Streaming (#49)
Add new status and notification websocket streaming capabilities
This commit is contained in:
14
internal/processing/streaming.go
Normal file
14
internal/processing/streaming.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package processing
|
||||
|
||||
import (
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
)
|
||||
|
||||
func (p *processor) AuthorizeStreamingRequest(accessToken string) (*gtsmodel.Account, error) {
|
||||
return p.streamingProcessor.AuthorizeStreamingRequest(accessToken)
|
||||
}
|
||||
|
||||
func (p *processor) OpenStreamForAccount(account *gtsmodel.Account, streamType string) (*gtsmodel.Stream, gtserror.WithCode) {
|
||||
return p.streamingProcessor.OpenStreamForAccount(account, streamType)
|
||||
}
|
Reference in New Issue
Block a user