MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewEmptySession

Function NewEmptySession

cmd/cql-proxy/model/session.go:271–279  ·  view source on GitHub ↗

NewEmptySession returns new session object with empty storage.

(c *gin.Context)

Source from the content-addressed store, hash-verified

269
270// NewEmptySession returns new session object with empty storage.
271func NewEmptySession(c *gin.Context) (s *Session) {
272 s = &Session{
273 Store: gin.H{},
274 }
275
276 c.Set("session", s)
277
278 return
279}
280
281// NewSession created and save new session to database.
282func NewSession(db *gorp.DbMap, expire int64) (s *Session, err error) {

Callers 2

userSessionInjectFunction · 0.92
adminSessionInjectFunction · 0.92

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected