MCPcopy Create free account
hub / github.com/1Panel-dev/KubePi / setUpSession

Method setUpSession

internal/server/server.go:169–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func (e *KubePiServer) setUpSession() {
170 SessionMgr = sessions.New(sessions.Config{Cookie: SessionCookieName, AllowReclaim: true, Expires: time.Duration(e.config.Spec.Session.Expires) * time.Hour})
171 e.rootRoute.Use(SessionMgr.Handler())
172}
173
174const ContentTypeDownload = "application/download"
175

Callers 1

bootstrapMethod · 0.95

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected