mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-17 19:17:17 +02:00
postgres: databroker storage backend (#3370)
* wip * storage: add filtering to SyncLatest * don't increment the record version, so intermediate changes are requested * databroker: add support for query filtering * fill server and record version * postgres: databroker storage backend * wip * serialize puts * add test * skip tests for macos * add test * return error from protojson * set data * exclude postgres from cover tests
This commit is contained in:
parent
550698b1ca
commit
1c2aad2de6
21 changed files with 1573 additions and 17 deletions
|
@ -30,6 +30,13 @@ func NewRandomStringN(c int) string {
|
|||
return base64.StdEncoding.EncodeToString(randomBytes(c))
|
||||
}
|
||||
|
||||
// NewRandomUInt32 returns a random uint32.
|
||||
//
|
||||
// Panics if source of randomness fails.
|
||||
func NewRandomUInt32() uint32 {
|
||||
return binary.LittleEndian.Uint32(randomBytes(4))
|
||||
}
|
||||
|
||||
// NewRandomUInt64 returns a random uint64.
|
||||
//
|
||||
// Panics if source of randomness fails.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue