mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:02:25 -05:00
Streaming (#49)
Add new status and notification websocket streaming capabilities
This commit is contained in:
parent
ad2e982edc
commit
aa8a0d0850
21 changed files with 621 additions and 30 deletions
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue