poolutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package poolutil implements utility functions to manage a pool of IP addresses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPSetCount

func IPSetCount(ipSet *netipx.IPSet) (int64, error)

IPSetCount returns the number of IPs contained in the given IPSet. This function returns type int64, which is smaller than the possible size of a range, which could be 2^128 IPs. When an IPSet's count is would be larger than max int64, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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