MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / SendNoTelemetryUpdate

Function SendNoTelemetryUpdate

pkg/wcloud/wcloud.go:257–267  ·  view source on GitHub ↗
(ctx context.Context, clientId string, noTelemetryVal bool)

Source from the content-addressed store, hash-verified

255}
256
257func SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error {
258 req, err := makeAnonPostReq(ctx, NoTelemetryUrl, NoTelemetryInputType{ClientId: clientId, Value: noTelemetryVal})
259 if err != nil {
260 return err
261 }
262 _, err = doRequest(req, nil, true)
263 if err != nil {
264 return err
265 }
266 return nil
267}
268
269func makePingPostReq(ctx context.Context, apiUrl string, data interface{}) (*http.Request, error) {
270 endpoint := GetPingEndpoint()

Callers 1

GoSendNoTelemetryUpdateFunction · 0.92

Calls 2

makeAnonPostReqFunction · 0.85
doRequestFunction · 0.85

Tested by

no test coverage detected