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

Method setSession

modules/clibridge/clibridge.go:82–86  ·  view source on GitHub ↗
(connId connections.ConnectionId, s *Session)

Source from the content-addressed store, hash-verified

80}
81
82func (m *CLIBridgeModule) setSession(connId connections.ConnectionId, s *Session) {
83 m.mu.Lock()
84 defer m.mu.Unlock()
85 m.sessions[connId] = s
86}
87
88func (m *CLIBridgeModule) removeSession(connId connections.ConnectionId) {
89 m.mu.Lock()

Callers 1

onCLIRequestMethod · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected