MCPcopy
hub / github.com/1Panel-dev/KubePi / Clean

Method Clean

pkg/logging/logging.go:65–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (sm *SessionMap) Clean() {
66 for _, v := range sm.Sessions {
67 v.sockJSSession.Close(2, "system is logout, please retry...")
68 }
69 sm.Sessions = make(map[string]LogSession)
70}
71
72var LogSessions = SessionMap{Sessions: make(map[string]LogSession)}
73

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected