|
|
|
@ -28,10 +28,10 @@ const (
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
type Endpoint struct { |
|
|
|
|
URL string |
|
|
|
|
Username string |
|
|
|
|
Password string |
|
|
|
|
CAFile string |
|
|
|
|
URL string `cfg:"url"` |
|
|
|
|
Username string `cfg:"username"` |
|
|
|
|
Password string `cfg:"password"` |
|
|
|
|
CAFile string `cfg:"ca_file"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type EndpointOption func(*Endpoint) |
|
|
|
@ -136,9 +136,9 @@ type Logger interface {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type Config struct { |
|
|
|
|
Endpoints []*Endpoint |
|
|
|
|
CertFile string |
|
|
|
|
KeyFile string |
|
|
|
|
Endpoints []*Endpoint `cfg:"endpoints"` |
|
|
|
|
CertFile string `cfg:"cert_file"` |
|
|
|
|
KeyFile string `cfg:"key_file"` |
|
|
|
|
Logger Logger |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|