closing

package
v0.0.0-...-97c714a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

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