WithLogger sets a custom logger for the client.
(logger interfaces.Logger)
| 15 | |
| 16 | // WithLogger sets a custom logger for the client. |
| 17 | func WithLogger(logger interfaces.Logger) ClientOption { |
| 18 | return func(opts *ClientOptions) { |
| 19 | opts.Logger = logger |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // WithCache sets a custom cache for the client. |
| 24 | func WithCache(cache interfaces.Cache) ClientOption { |
no outgoing calls