ip

package
Version: v0.0.0-...-7bf3b00 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 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

var Default Backend

Default represents the default IP lookup backend

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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