mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 15:42:27 -06:00
23 lines
453 B
Go
23 lines
453 B
Go
|
|
package streaming
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gorilla/websocket"
|
||
|
|
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||
|
|
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (p *processor) StreamForAccount(c *websocket.Conn, account *gtsmodel.Account, streamType string) gtserror.WithCode {
|
||
|
|
|
||
|
|
v, loaded := p.streamMap.LoadOrStore(account.ID, sync.Slice)
|
||
|
|
if loaded {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
type streams struct {
|
||
|
|
accountID string
|
||
|
|
|
||
|
|
}
|