MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / getSyncEventDetails

Function getSyncEventDetails

cli/internal/analytics/client.go:55–60  ·  view source on GitHub ↗

getSyncEventDetails returns the cached event details if available, otherwise it fetches the details from the API

(ctx context.Context)

Source from the content-addressed store, hash-verified

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

Callers 4

TrackSyncStartedFunction · 0.85
TrackSyncCompletedFunction · 0.85
TrackInitStartedFunction · 0.85
TrackInitCompletedFunction · 0.85

Calls 1

refreshSyncEventDetailsFunction · 0.85

Tested by

no test coverage detected