networktype

package
v1.67.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL