ip

package
v0.0.0-...-e994816 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package ip defines the IP lookup backend interface

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
Package ipify provides an IP lookup backend via the ipify.org service
Package ipify provides an IP lookup backend via the ipify.org service
Package local provides a machine local IP lookup backend
Package local provides a machine local IP lookup backend

Jump to

Keyboard shortcuts

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