OpenSlides/performance/client/option.go
2021-04-01 09:19:21 +02:00

12 lines
245 B
Go

package client
// Option is an optional argument for New().
type Option func(*Client)
// WithLoginRetry sets a number that login should retry befor failing.
func WithLoginRetry(n int) Option {
return func(c *Client) {
c.loginRetry = n
}
}