mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 14:02:25 -05:00
15 lines
552 B
Go
15 lines
552 B
Go
package processing
|
|
|
|
import (
|
|
"github.com/gorilla/websocket"
|
|
"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) StreamForAccount(c *websocket.Conn, account *gtsmodel.Account, streamType string) gtserror.WithCode {
|
|
return p.streamingProcessor.StreamForAccount(c, account, streamType)
|
|
}
|