MCPcopy Create free account
hub / github.com/daodst/chat / PerformKeyBackup

Method PerformKeyBackup

userapi/inthttp/client.go:301–311  ·  view source on GitHub ↗
(ctx context.Context, req *api.PerformKeyBackupRequest, res *api.PerformKeyBackupResponse)

Source from the content-addressed store, hash-verified

299}
300
301func (h *httpUserInternalAPI) PerformKeyBackup(ctx context.Context, req *api.PerformKeyBackupRequest, res *api.PerformKeyBackupResponse) error {
302 span, ctx := opentracing.StartSpanFromContext(ctx, "PerformKeyBackup")
303 defer span.Finish()
304
305 apiURL := h.apiURL + PerformKeyBackupPath
306 err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, req, res)
307 if err != nil {
308 res.Error = err.Error()
309 }
310 return nil
311}
312func (h *httpUserInternalAPI) QueryKeyBackup(ctx context.Context, req *api.QueryKeyBackupRequest, res *api.QueryKeyBackupResponse) {
313 span, ctx := opentracing.StartSpanFromContext(ctx, "QueryKeyBackup")
314 defer span.Finish()

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected