MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cachedSessionIDs

Method cachedSessionIDs

cmd/inject-cli/main.go:251–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251func (c *apiClient) cachedSessionIDs() []string {
252 sessions, err := c.getSessions()
253 if err != nil {
254 return nil
255 }
256 ids := make([]string, len(sessions))
257 for i, s := range sessions {
258 ids[i] = s.ID
259 }
260 return ids
261}
262
263// ----- helpers -----
264

Callers 1

mainCompleterFunction · 0.80

Calls 1

getSessionsMethod · 0.95

Tested by

no test coverage detected