defaultClientOptions returns the default client options.
()
| 42 | |
| 43 | // defaultClientOptions returns the default client options. |
| 44 | func defaultClientOptions() clientOptions { |
| 45 | return clientOptions{ |
| 46 | pageSize: 100, |
| 47 | timeout: 120 * time.Second, |
| 48 | retryConfig: &retryConfig{ |
| 49 | maxAttempts: 3, |
| 50 | initialInterval: 1 * time.Second, |
| 51 | maxInterval: 30 * time.Second, |
| 52 | }, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // client is the Bytebase API client used inside the action command package. |
| 57 | type client struct { |
no outgoing calls