blob: 32c3ac71aae6f9f9c7d210009f5e938f21e5a018 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package podagent
import "a.yandex-team.ru/library/go/core/log"
type Option func(client *Client)
func WithEndpoint(endpointURL string) Option {
return func(c *Client) {
c.httpc.SetBaseURL(endpointURL)
}
}
func WithLogger(l log.Fmt) Option {
return func(c *Client) {
c.httpc.SetLogger(l)
}
}
|