orchard/pkg/client/option.go

18 lines
288 B
Go

package client
import "crypto/tls"
type Option func(*Client)
func WithAddress(address string) Option {
return func(client *Client) {
client.address = address
}
}
func WithTLSConfig(tlsConfig *tls.Config) Option {
return func(client *Client) {
client.tlsConfig = tlsConfig
}
}