MCPcopy Create free account
hub / github.com/MG-RAST/Shock / add

Method add

shock-server/auth/cache.go:46–54  ·  view source on GitHub ↗
(header string, u *user.User)

Source from the content-addressed store, hash-verified

44}
45
46func (c *cache) add(header string, u *user.User) {
47 c.Lock()
48 defer c.Unlock()
49 c.m[header] = cacheValue{
50 expires: time.Now().Add(time.Duration(conf.AUTH_CACHE_TIMEOUT) * time.Minute),
51 user: u,
52 }
53 return
54}

Callers 1

AuthenticateFunction · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected