mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 21:02:26 -05:00
start messing about with streaming api
This commit is contained in:
parent
82d9f88e42
commit
0cee5aa569
9 changed files with 241 additions and 2 deletions
22
internal/processing/synchronous/streaming/stream.go
Normal file
22
internal/processing/synchronous/streaming/stream.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue