util

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChordIDToNodeID added in v2.2.0

func ChordIDToNodeID(chordID []byte) string

func DotToDash added in v2.2.0

func DotToDash(ip string) string

func GetDefaultDomainFromIP added in v2.2.0

func GetDefaultDomainFromIP(hostname, domainTemplate string) (string, error)

func RandDuration

func RandDuration(average time.Duration, delta float64) time.Duration

RandDuration generates a random duration

func RandomBytes

func RandomBytes(length int) []byte

Types

type TlsDomain added in v2.2.0

type TlsDomain struct {
	DashedIP string
}

func (*TlsDomain) IpToDomain added in v2.2.0

func (w *TlsDomain) IpToDomain(domainTemplate string) (string, error)

type Uint32Slice

type Uint32Slice []uint32

func (Uint32Slice) Len

func (p Uint32Slice) Len() int

func (Uint32Slice) Less

func (p Uint32Slice) Less(i, j int) bool

func (Uint32Slice) Swap

func (p Uint32Slice) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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