Store persists requests and steps (ledger).
| 10 | |
| 11 | // Store persists requests and steps (ledger). |
| 12 | type Store interface { |
| 13 | CreateRequest(ctx context.Context, row RequestRow) error |
| 14 | UpdateRequest(ctx context.Context, requestID string, patch RequestPatch) error |
| 15 | AppendStep(ctx context.Context, step StepRow) error |
| 16 | GetRequest(ctx context.Context, requestID string) (RequestRow, error) |
| 17 | ListSteps(ctx context.Context, requestID string) ([]StepRow, error) |
| 18 | Close() error |
| 19 | } |
| 20 | |
| 21 | // RequestPatch updates mutable request fields. |
| 22 | type RequestPatch struct { |
no outgoing calls
no test coverage detected