MCPcopy Index your code
hub / github.com/coder/coder / Load

Method Load

coderd/util/syncmap/map.go:23–30  ·  view source on GitHub ↗

nolint:forcetypeassert

(key K)

Source from the content-addressed store, hash-verified

21
22//nolint:forcetypeassert
23func (m *Map[K, V]) Load(key K) (value V, ok bool) {
24 v, ok := m.m.Load(key)
25 if !ok {
26 var empty V
27 return empty, false
28 }
29 return v.(V), ok
30}
31
32func (m *Map[K, V]) Delete(key K) {
33 m.m.Delete(key)

Callers 15

postUserSecretMethod · 0.45
patchUserSecretMethod · 0.45
deleteUserSecretMethod · 0.45
NewFunction · 0.45
CloseMethod · 0.45
DERPMapMethod · 0.45
TestUserOAuth2GithubFunction · 0.45
postOAuth2ProviderAppMethod · 0.45
putOAuth2ProviderAppMethod · 0.45

Calls

no outgoing calls