package
5.1.6+incompatible
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
BytesLenSplit splits the given byte array into an n-length arrays.
No description provided by the author
CIDRIsSubset returns whether na is a subset (possibly improper) of nb.
CoalesceCIDRs coalesces cidrs into a smaller set of CIDRs, by combining overlapping networks into networks of size coalesceMaskLen, if there are at least coalesceNumber cidrs in the larger mask.
CoalesceIPs combines ips into CIDRs, by combining overlapping networks into networks of size coalesceMaskLen, if there are at least coalesceNumber IPs in the larger mask.
No description provided by the author
No description provided by the author
FirstIP returns the first IP in the CIDR.
No description provided by the author
HashInts returns a SHA512 hash of ints.
No description provided by the author
No description provided by the author
No description provided by the author
IntSliceToMap creates an int set from an array.
No description provided by the author
No description provided by the author
IPToCIDR returns the CIDR containing just the given IP.
No description provided by the author
No description provided by the author
No description provided by the author
LastIP returns the last IP in the CIDR.
No description provided by the author
No description provided by the author
RangeStr returns the hyphenated range of IPs.
RemoveStrDuplicates removes duplicates from strings, considering a map of already-seen duplicates.
Stacktrace is a helper function which returns the current stacktrace.
StrInArray returns whether s is one of the strings in strs.
StripAllWhitespace returns s with all whitespace removed, as defined by unicode.IsSpace.
No description provided by the author
ToNumeric returns a float for any numeric type, and false if the interface does not hold a numeric type.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
ConstantBackoffDuration is a fallback duration that may be used by an application along with NewConstantBackoff().
DefaultFactor may be used by applications for the factor argument.
No description provided by the author
# Structs
BodyInterceptor fulfills the Writer interface, but records the body and doesn't actually write.
Interceptor implements http.ResponseWriter.
JSONNameOrIDStr is designed to handle backwards-compatibility for old Perl endpoints which accept both.
# Interfaces
No description provided by the author
# Type aliases
JSONIntStr unmarshals JSON strings or numbers into an int.