package networktype
import "google.golang.org/grpc/internal/transport/networktype"
Package networktype declares the network type to be used in the default dialer. Attribute of a resolver.Address.
Index ¶
- func Get(address resolver.Address) (string, bool)
- func Set(address resolver.Address, networkType string) resolver.Address
Functions ¶
func Get ¶
Get returns the network type in the resolver.Address and true, or "", false if not present.
func Set ¶
Set returns a copy of the provided address with attributes containing networkType.
Source Files ¶
networktype.go
- Version
- v1.70.0 (latest)
- Published
- Jan 23, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 18 minutes ago –
Tools for package owners.