pomerium/internal/databroker
Caleb Doxsey 6918bf83cb
databroker: add a wait field to sync request (#5630)
## Summary
Add a new `wait` field to the sync request for the databroker. The
current behavior is to always wait for changes in a never-ending stream
of records, but there are cases where it would be useful to stream the
changes and stop when there are no changes remaining. The storage
backends already support this.

The `wait` field is optional and the default will be to wait, preserving
the existing behavior.

## Related issues
-
[ENG-2401](https://linear.app/pomerium/issue/ENG-2401/enterprise-console-improve-performance-of-directory-sync-using-cached)

## Checklist

- [x] reference any related issues
- [ ] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [x] ready for review
2025-05-29 12:50:14 -06:00
..
config.go databroker: remove unused serverConfig fields (#5314) 2024-10-04 12:04:59 -07:00
config_source.go config: use stable route ids for authorize matching and order xds responses (#5618) 2025-05-19 10:52:15 -06:00
config_source_test.go New tracing system (#5388) 2025-01-21 13:26:32 -05:00
registry.go New tracing system (#5388) 2025-01-21 13:26:32 -05:00
server.go databroker: add a wait field to sync request (#5630) 2025-05-29 12:50:14 -06:00
server_test.go New tracing system (#5388) 2025-01-21 13:26:32 -05:00