ip

package
v0.0.0-...-6d75bde Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Get the host IP address for the given protocol
	Get(proto IFlag) (string, error)
}

Backend defines the IP lookup backend interface

type IFlag

type IFlag uint8

IFlag represents an address family inet flag

const Inet IFlag = 0x2

Inet copies the AF_INET definition

const Inet6 IFlag = 0xa

Inet6 copies the AF_INET definition

func (IFlag) String

func (i IFlag) String() string

String implements the stringer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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