getSyncEventDetails returns the cached event details if available, otherwise it fetches the details from the API
(ctx context.Context)
| 53 | |
| 54 | // getSyncEventDetails returns the cached event details if available, otherwise it fetches the details from the API |
| 55 | func getSyncEventDetails(ctx context.Context) *eventDetails { |
| 56 | if cachedSyncEventDetails == nil { |
| 57 | refreshSyncEventDetails(ctx) |
| 58 | } |
| 59 | return cachedSyncEventDetails |
| 60 | } |
| 61 | |
| 62 | func refreshSyncEventDetails(ctx context.Context) *eventDetails { |
| 63 | tc := cqauth.NewTokenClient() |
no test coverage detected