closing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSafeChanCloser

func NewSafeChanCloser() *safeChanCloser

NewSafeChanCloser returns a safe chan closer instance

func NewShuffleOutCloser

func NewShuffleOutCloser(
	minWaitDuration time.Duration,
	maxWaitDuration time.Duration,
	signalChan chan endProcess.ArgEndProcess,
	log core.Logger,
) (*shuffleOutCloser, error)

NewShuffleOutCloser creates a shuffle out component that is able to trigger a node restart and cancel that request if necessarily

Types

type Closer

type Closer interface {
	Close() error
}

Closer closes all stuff released by an object

type IntRandomizer

type IntRandomizer interface {
	Intn(n int) int
	IsInterfaceNil() bool
}

IntRandomizer interface provides functionality over generating integer numbers

Jump to

Keyboard shortcuts

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