net.SRV.Weight (field)
7 uses
net (current package)
dnsclient.go#L157: Weight uint16
dnsclient.go#L165: return s[i].Priority < s[j].Priority || (s[i].Priority == s[j].Priority && s[i].Weight < s[j].Weight)
dnsclient.go#L174: sum += int(addr.Weight)
dnsclient.go#L180: s += int(addrs[i].Weight)
dnsclient.go#L188: sum -= int(addrs[0].Weight)
lookup_unix.go#L177: srvs = append(srvs, &SRV{Target: srv.Target.String(), Port: srv.Port, Priority: srv.Priority, Weight: srv.Weight})
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |