MCPcopy Create free account
hub / github.com/tailscale/tailcat / Get

Method Get

tailcat.go:113–113  ·  view source on GitHub ↗

Get returns the previously stored DERP map response for url: its raw JSON, the server's ETag (or ""), and when it was stored. It returns ok == false if nothing usable is stored.

(url string)

Source from the content-addressed store, hash-verified

111 // its raw JSON, the server's ETag (or ""), and when it was
112 // stored. It returns ok == false if nothing usable is stored.
113 Get(url string) (data []byte, etag string, storedAt time.Time, ok bool)
114
115 // Put stores the DERP map response for url, replacing any prior
116 // entry and marking it stored as of now. An empty etag means the

Callers 15

StartMethod · 0.65
fetchDERPMapFunction · 0.65
advertiseEndpointsMethod · 0.65
StartMethod · 0.65
onMeowMethod · 0.65
StatusMethod · 0.65
newNetstackFunction · 0.65
createEngineFunction · 0.65
initLockedMethod · 0.65
pingMethod · 0.65
DiscoPingMethod · 0.65
DialMethod · 0.65

Implementers 2

memDERPMapCachetailcat.go
derpMapCachecmd/tailcat/tailcat.go

Calls

no outgoing calls

Tested by 3

TestWireFieldNamesFunction · 0.52
WaitForDERPForTestFunction · 0.52
TestHandlerFunction · 0.52