diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-01 15:27:55 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-03-01 15:27:55 +0100 |
| commit | ce37d9da1a4197c9f983cefe517cfc895681175c (patch) | |
| tree | 70217d28ec3735e308d5632a004778e8f96d0b30 /internal/api | |
| parent | 6422ef9bcee312a5e9ab9cd32290b8ea733e016f (diff) | |
API: Document GetEndpointCache
Diffstat (limited to 'internal/api')
| -rw-r--r-- | internal/api/cache.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/cache.go b/internal/api/cache.go index 2baefc8..4777334 100644 --- a/internal/api/cache.go +++ b/internal/api/cache.go @@ -52,6 +52,8 @@ var ( epCacheOnce sync.Once ) +// GetEndpointCache returns the global singleton endpoint cache +// or creates one if it does not exist func GetEndpointCache() *EndpointCache { epCacheOnce.Do(func() { epCache = &EndpointCache{ |
