mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Inactive cursors - multiple positions.
This commit is contained in:
@ -88,10 +88,9 @@ type SessionData struct {
|
||||
State types.SessionState `json:"state"`
|
||||
}
|
||||
|
||||
type SessionCursor struct {
|
||||
ID string `json:"id"`
|
||||
X uint16 `json:"x"`
|
||||
Y uint16 `json:"y"`
|
||||
type SessionCursors struct {
|
||||
ID string `json:"id"`
|
||||
Cursors []types.Cursor `json:"cursors"`
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
@ -13,8 +13,8 @@ var (
|
||||
)
|
||||
|
||||
type Cursor struct {
|
||||
X int
|
||||
Y int
|
||||
X int `json:"x"`
|
||||
Y int `json:"y"`
|
||||
}
|
||||
|
||||
type SessionState struct {
|
||||
@ -56,7 +56,7 @@ type SessionManager interface {
|
||||
ClearHost()
|
||||
|
||||
SetCursor(cursor Cursor, session Session)
|
||||
PopCursors() map[Session]Cursor
|
||||
PopCursors() map[Session][]Cursor
|
||||
|
||||
Broadcast(event string, payload interface{}, exclude interface{})
|
||||
AdminBroadcast(event string, payload interface{}, exclude interface{})
|
||||
|
Reference in New Issue
Block a user