MCPcopy
hub / github.com/jpillora/chisel / Get

Method Get

share/settings/users.go:33–38  ·  view source on GitHub ↗

Get user from the index by key

(key string)

Source from the content-addressed store, hash-verified

31
32// Get user from the index by key
33func (u *Users) Get(key string) (*User, bool) {
34 u.RLock()
35 user, found := u.inner[key]
36 u.RUnlock()
37 return user, found
38}
39
40// Set a users into the list by specific key
41func (u *Users) Set(key string, user *User) {

Callers 5

TestCustomHeadersFunction · 0.80
requestFileFunction · 0.80
authUserMethod · 0.80
handleClientHandlerMethod · 0.80
handleWebsocketMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCustomHeadersFunction · 0.64