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

Method PerformClaimKeys

keyserver/inthttp/client.go:67–82  ·  view source on GitHub ↗
(
	ctx context.Context,
	request *api.PerformClaimKeysRequest,
	response *api.PerformClaimKeysResponse,
)

Source from the content-addressed store, hash-verified

65}
66
67func (h *httpKeyInternalAPI) PerformClaimKeys(
68 ctx context.Context,
69 request *api.PerformClaimKeysRequest,
70 response *api.PerformClaimKeysResponse,
71) {
72 span, ctx := opentracing.StartSpanFromContext(ctx, "PerformClaimKeys")
73 defer span.Finish()
74
75 apiURL := h.apiURL + PerformClaimKeysPath
76 err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, request, response)
77 if err != nil {
78 response.Error = &api.KeyError{
79 Err: err.Error(),
80 }
81 }
82}
83
84func (h *httpKeyInternalAPI) PerformDeleteKeys(
85 ctx context.Context,

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected