MCPcopy Index your code
hub / github.com/coder/coder / DeleteCryptoKey

Method DeleteCryptoKey

coderd/database/dbmetrics/querymetrics.go:525–531  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteCryptoKeyParams)

Source from the content-addressed store, hash-verified

523}
524
525func (m queryMetricsStore) DeleteCryptoKey(ctx context.Context, arg database.DeleteCryptoKeyParams) (database.CryptoKey, error) {
526 start := time.Now()
527 r0, r1 := m.s.DeleteCryptoKey(ctx, arg)
528 m.queryLatencies.WithLabelValues("DeleteCryptoKey").Observe(time.Since(start).Seconds())
529 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "DeleteCryptoKey").Inc()
530 return r0, r1
531}
532
533func (m queryMetricsStore) DeleteCustomRole(ctx context.Context, arg database.DeleteCustomRoleParams) error {
534 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
DeleteCryptoKeyMethod · 0.65

Tested by

no test coverage detected