summaryrefslogtreecommitdiff
path: root/docs-src/content/functions/net.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docs-src/content/functions/net.yml')
-rw-r--r--docs-src/content/functions/net.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs-src/content/functions/net.yml b/docs-src/content/functions/net.yml
index 4afa5689..1150cd48 100644
--- a/docs-src/content/functions/net.yml
+++ b/docs-src/content/functions/net.yml
@@ -58,11 +58,11 @@ funcs:
Resolve a DNS [`SRV` service record](https://en.wikipedia.org/wiki/SRV_record).
This implementation supports the canonical [RFC2782](https://tools.ietf.org/html/rfc2782)
form (i.e. `_Service._Proto.Name`), but other forms are also supported, such as
- those served by [Consul's DNS interface](https://www.consul.io/docs/agent/dns.html#standard-lookup).
+ those served by [Consul's DNS interface](https://developer.hashicorp.com/consul/docs/services/discovery/dns-dynamic-lookups#standard-lookup).
When multiple records are returned, this function returns the first.
- A [`net.SRV`](https://golang.org/pkg/net/#SRV) data structure is returned. The
+ A [`net.SRV`](https://pkg.go.dev/net/#SRV) data structure is returned. The
following properties are available:
- `Target` - _(string)_ the hostname where the service can be reached
- `Port` - _(uint16)_ the service's port
@@ -87,11 +87,11 @@ funcs:
Resolve a DNS [`SRV` service record](https://en.wikipedia.org/wiki/SRV_record).
This implementation supports the canonical [RFC2782](https://tools.ietf.org/html/rfc2782)
form (i.e. `_Service._Proto.Name`), but other forms are also supported, such as
- those served by [Consul's DNS interface](https://www.consul.io/docs/agent/dns.html#standard-lookup).
+ those served by [Consul's DNS interface](https://developer.hashicorp.com/consul/docs/services/discovery/dns-dynamic-lookups#standard-lookup).
This function returns all available SRV records.
- An array of [`net.SRV`](https://golang.org/pkg/net/#SRV) data structures is
+ An array of [`net.SRV`](https://pkg.go.dev/net/#SRV) data structures is
returned. For each element, the following properties are available:
- `Target` - _(string)_ the hostname where the service can be reached
- `Port` - _(uint16)_ the service's port
@@ -154,7 +154,7 @@ funcs:
93.176.0.0/12
- name: net.ParseIP
released: v3.10.0
- deprecated: Use [`net.ParseAddr`](#net-parseaddr) instead.
+ deprecated: Use [`net.ParseAddr`](#netparseaddr) instead.
description: |
Parse the given string as an IP address (a `netaddr.IP` from the
[`inet.af/netaddr`](https://pkg.go.dev/inet.af/netaddr) package).
@@ -199,7 +199,7 @@ funcs:
true
- name: net.ParseIPPrefix
released: v3.10.0
- deprecated: Use [`net.ParsePrefix`](#net-parseprefix) instead.
+ deprecated: Use [`net.ParsePrefix`](#netparseprefix) instead.
description: |
Parse the given string as an IP address prefix (CIDR) representing an IP
network (a `netaddr.IPPrefix` from the
@@ -257,7 +257,7 @@ funcs:
[1.2.3.0/25 1.2.3.128/26 1.2.3.192/27 1.2.3.224/29 1.2.3.232/31]
- name: net.ParseIPRange
released: v3.10.0
- deprecated: Use [`net.ParseRange`](#net-parserange) instead.
+ deprecated: Use [`net.ParseRange`](#netparserange-_experimental_) instead.
description: |
Parse the given string as an inclusive range of IP addresses from the same
address family (a `netaddr.IPRange` from the [`inet.af/netaddr`][] package).