MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / getSession

Method getSession

modules/clibridge/clibridge.go:76–80  ·  view source on GitHub ↗
(connId connections.ConnectionId)

Source from the content-addressed store, hash-verified

74}
75
76func (m *CLIBridgeModule) getSession(connId connections.ConnectionId) *Session {
77 m.mu.Lock()
78 defer m.mu.Unlock()
79 return m.sessions[connId]
80}
81
82func (m *CLIBridgeModule) setSession(connId connections.ConnectionId, s *Session) {
83 m.mu.Lock()

Callers 3

cliCommandMethod · 0.95
makeInputHandlerMethod · 0.95
onWindowChangeMethod · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected