grpc: Index | Files

package networktype

import ""

Package networktype declares the network type to be used in the default dailer. Attribute of a resolver.Address.


Package Files


func Get Uses

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 Uses

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

Set returns a copy of the provided address with attributes containing networkType.

Package networktype imports 1 packages (graph) and is imported by 4 packages. Updated 2020-10-17. Refresh now. Tools for package owners.