| 299 | } |
| 300 | |
| 301 | func (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 | } |
| 312 | func (h *httpUserInternalAPI) QueryKeyBackup(ctx context.Context, req *api.QueryKeyBackupRequest, res *api.QueryKeyBackupResponse) { |
| 313 | span, ctx := opentracing.StartSpanFromContext(ctx, "QueryKeyBackup") |
| 314 | defer span.Finish() |