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

Method GetAIBridgeInterceptions

coderd/database/dbauthz/dbauthz.go:2547–2552  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

2545}
2546
2547func (q *querier) GetAIBridgeInterceptions(ctx context.Context) ([]database.AIBridgeInterception, error) {
2548 fetch := func(ctx context.Context, _ any) ([]database.AIBridgeInterception, error) {
2549 return q.db.GetAIBridgeInterceptions(ctx)
2550 }
2551 return fetchWithPostFilter(q.auth, policy.ActionRead, fetch)(ctx, nil)
2552}
2553
2554func (q *querier) GetAIBridgeTokenUsagesByInterceptionID(ctx context.Context, interceptionID uuid.UUID) ([]database.AIBridgeTokenUsage, error) {
2555 // All aibridge_token_usages records belong to the initiator of their associated interception.

Callers

nothing calls this directly

Calls 2

fetchWithPostFilterFunction · 0.85

Tested by

no test coverage detected