Documentation
¶
Index ¶
- Constants
- Variables
- type WSState
- func (ws *WSState) GetConnectTime() time.Time
- func (ws *WSState) GetShell() *wsshell.WSShell
- func (ws *WSState) IsAuthenticated() bool
- func (ws *WSState) ReplaceShell(shell *wsshell.WSShell)
- func (ws *WSState) RunUpdates(updateCh chan scbus.UpdatePacket)
- func (ws *WSState) RunWSRead()
- func (ws *WSState) SetAuthenticated(authVal bool)
- func (ws *WSState) UnWatchScreen()
- func (ws *WSState) UpdateConnectTime()
- func (ws *WSState) WatchScreen(sessionId string, screenId string)
- func (ws *WSState) WriteUpdate(update any) error
Constants ¶
View Source
const RemoteInputQueueSize = 100
View Source
const WSStatePacketChSize = 20
Variables ¶
View Source
var RemoteInputMapQueue *mapqueue.MapQueue
Functions ¶
This section is empty.
Types ¶
type WSState ¶
type WSState struct { Lock *sync.Mutex ClientId string ConnectTime time.Time Shell *wsshell.WSShell UpdateCh chan scbus.UpdatePacket UpdateQueue []any Authenticated bool AuthKey string SessionId string ScreenId string }
func MakeWSState ¶
func (*WSState) GetConnectTime ¶
func (*WSState) IsAuthenticated ¶
func (*WSState) ReplaceShell ¶
func (*WSState) RunUpdates ¶
func (ws *WSState) RunUpdates(updateCh chan scbus.UpdatePacket)
func (*WSState) SetAuthenticated ¶
func (*WSState) UnWatchScreen ¶
func (ws *WSState) UnWatchScreen()
func (*WSState) UpdateConnectTime ¶
func (ws *WSState) UpdateConnectTime()
func (*WSState) WatchScreen ¶
func (*WSState) WriteUpdate ¶
Click to show internal directories.
Click to hide internal directories.