MCPcopy
hub / github.com/snyk/cli / v1AnalyticsInterceptor

Struct v1AnalyticsInterceptor

cliv2/internal/proxy/interceptor/v1_analytics.go:48–51  ·  view source on GitHub ↗

v1AnalyticsInterceptor looks for requests to the (now deprecated) v1 analytics endpoint, and re-directs these requests to the v2 analytics service. This is a temporary measure to allow users to migrate to the new service.

Source from the content-addressed store, hash-verified

46// v1AnalyticsInterceptor looks for requests to the (now deprecated) v1 analytics endpoint, and re-directs these
47// requests to the v2 analytics service. This is a temporary measure to allow users to migrate to the new service.
48type v1AnalyticsInterceptor struct {
49 requestCondition goproxy.ReqCondition
50 invocationCtx workflow.InvocationContext
51}
52
53func (v v1AnalyticsInterceptor) GetCondition() goproxy.ReqCondition {
54 return v.requestCondition

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected