Versions in this module Expand all Collapse all v1 v1.0.0 Jun 19, 2022 Changes in this version + func CopyBytes(b []byte) []byte + func IsSorted2DBytes(arr [][]byte) bool + func IsSortedAndUnique(data sort.Interface) bool + func IsSortedAndUniqueUint32(arr []uint32) bool + func IsSortedAndUniqueUint64(u64 []uint64) bool + func RandomBytes(n int) []byte + func Sort2DBytes(arr [][]byte) + func SortUint32(u32 []uint32) + func SortUint64(u64 []uint64) + type AtomicBool struct + func (a *AtomicBool) GetValue() bool + func (a *AtomicBool) SetValue(b bool) + type AtomicInterface struct + func NewAtomicInterface(v interface{}) *AtomicInterface + func (a *AtomicInterface) GetValue() interface{} + func (a *AtomicInterface) SetValue(v interface{}) + type DynamicIPDesc struct + func NewDynamicIPDesc(ip net.IP, port uint16) DynamicIPDesc + func (i *DynamicIPDesc) IP() IPDesc + func (i *DynamicIPDesc) Update(ip IPDesc) + func (i *DynamicIPDesc) UpdateIP(ip net.IP) + func (i *DynamicIPDesc) UpdatePort(port uint16) + type IPCertDesc struct + Cert *x509.Certificate + IPDesc IPDesc + Signature []byte + Time uint64 + type IPDesc struct + IP net.IP + Port uint16 + func ToIPDesc(str string) (IPDesc, error) + func (ipDesc IPDesc) Equal(otherIPDesc IPDesc) bool + func (ipDesc IPDesc) IsPrivate() bool + func (ipDesc IPDesc) IsZero() bool + func (ipDesc IPDesc) PortString() string + func (ipDesc IPDesc) String() string + type IPDescContainer struct