internal

package
v2.14.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJitter added in v2.11.2

func AddJitter(duration time.Duration, jitter float64) time.Duration

AddJitter adds random jitter to a duration.

It adds or subtracts time from the duration within a given jitter fraction. For example for 10s and jitter 0.1, it returns a duration within [9s, 11s).

func FormatFrames added in v2.14.6

func FormatFrames(frames []runtime.Frame) []byte

func IdentifyPanic added in v2.3.5

func IdentifyPanic(skip int) (location string, frames []runtime.Frame)

IdentifyPanic reports the panic location when a panic happens.

func NextPowerOfTwo

func NextPowerOfTwo(x uint) uint

Types

This section is empty.

Directories

Path Synopsis
Package constraints defines a set of useful constraints to be used with type parameters.
Package constraints defines a set of useful constraints to be used with type parameters.
Package unsafeheader contains header declarations copied from Go's runtime.
Package unsafeheader contains header declarations copied from Go's runtime.

Jump to

Keyboard shortcuts

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