MCPcopy Create free account
hub / github.com/Control-D-Inc/ctrld / String

Method String

config.go:1035–1041  ·  view source on GitHub ↗

String returns a string representation of the UpstreamConfig for logging.

()

Source from the content-addressed store, hash-verified

1033
1034// String returns a string representation of the UpstreamConfig for logging.
1035func (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.
1044func bootstrapIPsFromControlDDomain(domain string) []string {

Callers 15

DiscoverVPNDNSFunction · 0.45
localNameserversFunction · 0.45
getDNSFromScutilFunction · 0.45
getAllDHCPNameserversFunction · 0.45
dialConnMethod · 0.45
getDNSServersFunction · 0.45
tryGetDCAddressFunction · 0.45
dnsFromRIBFunction · 0.45
ResolveMethod · 0.45
systemMetadataFunction · 0.45
newTestHTTP3ServerFunction · 0.45

Calls

no outgoing calls

Tested by 15

newTestHTTP3ServerFunction · 0.36
newTestQUICServerFunction · 0.36
newMalformedDoQServerFunction · 0.36
newStrictDoQServerFunction · 0.36
Test_logWriter_WriteFunction · 0.36
Test_prog_upstreamForFunction · 0.36