MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Design-Patterns / FindUser

Method FindUser

Chapter04/proxy/proxy.go:57–78  ·  view source on GitHub ↗

FindUser will search for the specified name in the parameter in the cache list. If it finds it, it will return it. If not, it will search in the heavy list. Finally, if it's not in the heavy list, it will return an error (generated from the heavy list)

(id int32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Test_UserListProxyFunction · 0.95

Calls 2

addUserToStackMethod · 0.95
FindUserMethod · 0.65

Tested by 1

Test_UserListProxyFunction · 0.76