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

Functions

func Get

func Get(address resolver.Address) (string, bool)

Get returns the network type in the resolver.Address and true, or "", false if not present.

func Set

func Set(address resolver.Address, networkType string) resolver.Address

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.