MCPcopy Index your code
hub / github.com/devspace-sh/devspace / addSession

Function addSession

helper/tunnel/session.go:81–87  ·  view source on GitHub ↗
(r *Session)

Source from the content-addressed store, hash-verified

79}
80
81func addSession(r *Session) error {
82 if _, ok := GetSession(r.ID); ok {
83 return fmt.Errorf("session %s already exists", r.ID.String())
84 }
85 openSessions.Store(r.ID, r)
86 return nil
87}
88
89func GetSession(id uuid.UUID) (*Session, bool) {
90 request, ok := openSessions.Load(id)

Callers 2

NewSessionFunction · 0.85
NewSessionFromStreamFunction · 0.85

Calls 3

GetSessionFunction · 0.85
ErrorfMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected