checkpoints

package
v0.1.3-testnet Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportDeadlockFatal

func ReportDeadlockFatal(name string, threshold time.Duration, log *zap.SugaredLogger)

Types

type Checkpoints

type Checkpoints struct {
	// contains filtered or unexported fields
}

func New

func New(callback func(name string), checkPeriod ...time.Duration) *Checkpoints

func (*Checkpoints) Check

func (c *Checkpoints) Check(name string, nextExpectedAfter ...time.Duration)

Check is nextExpectedAfter == 0 cancels checkpoint

func (*Checkpoints) CheckAndClose

func (c *Checkpoints) CheckAndClose(name string)

func (*Checkpoints) Close

func (c *Checkpoints) Close()

Jump to

Keyboard shortcuts

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