WithToken is a function that returns an Option, which sets the token field of the config struct.
(val string)
| 40 | |
| 41 | // WithToken is a function that returns an Option, which sets the token field of the config struct. |
| 42 | func WithToken(val string) Option { |
| 43 | return optionFunc(func(c *config) { |
| 44 | c.token = val |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | // WithOrgID is a function that returns an Option, which sets the orgID field of the config struct. |
| 49 | func WithOrgID(val string) Option { |