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)
| 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 |
no outgoing calls