ip

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package net provides network-related methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveAddress

func DeriveAddress(req *http.Request) (uint32, error)

Derive a numeric IP address from 'req'.

func IPToInt

func IPToInt(ip_addr net.IP) uint32

IPToInt converts ip_addr in to a `uint32` value.

func IntToIP

func IntToIP(n uint32) net.IP

IntToIP converts 'n' in to a `net.IP` instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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