mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: User pagination using offsets (#1062)
Offset pagination and cursor pagination supported
This commit is contained in:
@ -55,6 +55,7 @@ type Options struct {
|
||||
AzureCertificates x509.VerifyOptions
|
||||
GoogleTokenValidator *idtoken.Validator
|
||||
SSHKeygenAlgorithm gitsshkey.Algorithm
|
||||
APIRateLimit int
|
||||
}
|
||||
|
||||
// New constructs an in-memory coderd instance and returns
|
||||
@ -125,6 +126,7 @@ func New(t *testing.T, options *Options) *codersdk.Client {
|
||||
GoogleTokenValidator: options.GoogleTokenValidator,
|
||||
SSHKeygenAlgorithm: options.SSHKeygenAlgorithm,
|
||||
TURNServer: turnServer,
|
||||
APIRateLimit: options.APIRateLimit,
|
||||
})
|
||||
t.Cleanup(func() {
|
||||
cancelFunc()
|
||||
|
Reference in New Issue
Block a user