String returns a string representation of the UpstreamConfig for logging.
()
| 1033 | |
| 1034 | // String returns a string representation of the UpstreamConfig for logging. |
| 1035 | func (uc *UpstreamConfig) String() string { |
| 1036 | if uc == nil { |
| 1037 | return "<nil>" |
| 1038 | } |
| 1039 | return fmt.Sprintf("{name: %q, type: %q, endpoint: %q, bootstrap_ip: %q, domain: %q, ip_stack: %q}", |
| 1040 | uc.Name, uc.Type, uc.Endpoint, uc.BootstrapIP, uc.Domain, uc.IPStack) |
| 1041 | } |
| 1042 | |
| 1043 | // bootstrapIPsFromControlDDomain returns bootstrap IPs for ControlD domain. |
| 1044 | func bootstrapIPsFromControlDDomain(domain string) []string { |
no outgoing calls