(ctx context.Context, arg database.GetChatsParams, prepared rbac.PreparedAuthorized)
| 6299 | } |
| 6300 | |
| 6301 | func (m queryMetricsStore) GetAuthorizedChats(ctx context.Context, arg database.GetChatsParams, prepared rbac.PreparedAuthorized) ([]database.GetChatsRow, error) { |
| 6302 | start := time.Now() |
| 6303 | r0, r1 := m.s.GetAuthorizedChats(ctx, arg, prepared) |
| 6304 | m.queryLatencies.WithLabelValues("GetAuthorizedChats").Observe(time.Since(start).Seconds()) |
| 6305 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAuthorizedChats").Inc() |
| 6306 | return r0, r1 |
| 6307 | } |
| 6308 | |
| 6309 | func (m queryMetricsStore) GetAuthorizedChatsByChatFileID(ctx context.Context, fileID uuid.UUID, prepared rbac.PreparedAuthorized) ([]database.Chat, error) { |
| 6310 | start := time.Now() |
nothing calls this directly
no test coverage detected