OpenSlides/performance/client/option.go

12 lines
245 B
Go
Raw Normal View History

2021-02-25 08:40:04 +01:00
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
}
}