ipinfo

package
v0.0.0-...-7370a3d Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ipinfo provides utility functions for translating IP information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZoneFromHost

func ZoneFromHost(ctx context.Context, host string) string

ZoneFromHost returns the zone for the given host.

func ZoneFromIP

func ZoneFromIP(ctx context.Context, ip string, netLookupAddr func(ip string) ([]string, error)) string

ZoneFromIP returns the zone for the given IP.

func ZonesFromHosts

func ZonesFromHosts(ctx context.Context, hosts []string) []string

ZonesFromHosts returns the zones for the given hosts.

func ZonesFromIPs

func ZonesFromIPs(ctx context.Context, ips []string, netLookupAddr func(ip string) ([]string, error)) []string

ZonesFromIPs returns the zones for the given IPs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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