utils

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicLoadAndIncrementUint64

func AtomicLoadAndIncrementUint64(addr *uint64) uint64

AtomicLoadAndIncrementUint64 performs CAS loop, increments counter and returns old value.

func CloseVerbose added in v0.7.5

func CloseVerbose(closer io.Closer)

func GenerateShortID

func GenerateShortID(ref core.RecordRef) core.ShortNodeID

GenerateShortID generate short ID for node without checking collisions

func GenerateUintShortID added in v0.8.0

func GenerateUintShortID(ref core.RecordRef) uint32

GenerateShortID generate short ID for node without checking collisions

func OriginIsDiscovery

func OriginIsDiscovery(cert core.Certificate) bool

func WaitTimeout

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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