InsertHeartbeatUsageEvent writes a heartbeat usage event to the database within the given transaction. The caller context must be authorized to create usage events in the database. The `id` should be a stable identifier for the event. Heartbeat events may be emitted by multiple replicas of the sam
(ctx context.Context, tx database.Store, id string, event usagetypes.HeartbeatEvent)
| 29 | // Inserts with the same `id` must be idempotent. The database enforces this by |
| 30 | // ignoring duplicate records. |
| 31 | InsertHeartbeatUsageEvent(ctx context.Context, tx database.Store, id string, event usagetypes.HeartbeatEvent) error |
| 32 | } |
| 33 | |
| 34 | // AGPLInserter is a no-op implementation of Inserter. |
no outgoing calls
no test coverage detected