From ce37d9da1a4197c9f983cefe517cfc895681175c Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 1 Mar 2024 15:27:55 +0100 Subject: API: Document GetEndpointCache --- internal/api/cache.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api') 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{ -- cgit v1.2.3