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

Method ListUserSecrets

coderd/database/dbmetrics/querymetrics.go:4485–4491  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

4483}
4484
4485func (m queryMetricsStore) ListUserSecrets(ctx context.Context, userID uuid.UUID) ([]database.ListUserSecretsRow, error) {
4486 start := time.Now()
4487 r0, r1 := m.s.ListUserSecrets(ctx, userID)
4488 m.queryLatencies.WithLabelValues("ListUserSecrets").Observe(time.Since(start).Seconds())
4489 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "ListUserSecrets").Inc()
4490 return r0, r1
4491}
4492
4493func (m queryMetricsStore) ListUserSecretsWithValues(ctx context.Context, userID uuid.UUID) ([]database.UserSecret, error) {
4494 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
ListUserSecretsMethod · 0.65

Tested by

no test coverage detected