summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-01 15:27:55 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-01 15:27:55 +0100
commitce37d9da1a4197c9f983cefe517cfc895681175c (patch)
tree70217d28ec3735e308d5632a004778e8f96d0b30 /internal
parent6422ef9bcee312a5e9ab9cd32290b8ea733e016f (diff)
API: Document GetEndpointCache
Diffstat (limited to 'internal')
-rw-r--r--internal/api/cache.go2
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{