closing

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 8 Imported by: 1

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