BatchStrategy accumulates individual log requests and emits batches. Run reads from in, batches records according to its policy, and writes batches to out. Run MUST close out when in is closed and all remaining records have been flushed. Run MUST respect ctx cancellation.
| 76 | // batches to out. Run MUST close out when in is closed and all remaining |
| 77 | // records have been flushed. Run MUST respect ctx cancellation. |
| 78 | type BatchStrategy interface { |
| 79 | Run(ctx context.Context, in <-chan LogRequest, out chan<- []LogRequest) |
| 80 | } |
| 81 | |
| 82 | type Store interface { |
| 83 | Store(logUrl *url.URL, batch []LogRequest) error |
no outgoing calls
no test coverage detected