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

Method Load

ipn/ipnlocal/netmapcache/netmapcache.go:399–399  ·  view source on GitHub ↗

Load fetches the contents of the specified key. If the key is not found in the store, Load must report [ErrKeyNotFound].

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

397 // Load fetches the contents of the specified key.
398 // If the key is not found in the store, Load must report [ErrKeyNotFound].
399 Load(ctx context.Context, key string) ([]byte, error)
400
401 // Store marshals and stores the contents of the specified value under key.
402 // If the key already exists, its contents are replaced.

Callers 15

TestConnFunction · 0.65
TestFallbackTCPHandlerFunction · 0.65
TestDialTCPFunction · 0.65
TestDialUDPFunction · 0.65
TestDeferredInitFunction · 0.65
TestDeferAfterDoFunction · 0.65
DeferMethod · 0.65
DoMethod · 0.65
doSlowMethod · 0.65
GetErrMethod · 0.65
PeekMethod · 0.65
PeekErrMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestConnFunction · 0.52
TestFallbackTCPHandlerFunction · 0.52
TestDialTCPFunction · 0.52
TestDialUDPFunction · 0.52
TestDeferredInitFunction · 0.52
TestDeferAfterDoFunction · 0.52
TestUpdateRoutesDeadlockFunction · 0.52
TestRuleDeletedEventFunction · 0.52
startMethod · 0.52
TestMaybeRebindOnErrorFunction · 0.52