common

package
v0.0.0-...-168a7d3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal string
const (
	SignalInterrupt    Signal = "Interrupt"
	SignalObserved     Signal = "Observed"
	SignalDoPacking    Signal = "DoPacking"
	SignalDoMining     Signal = "DoMining"
	SignalDoReceipting Signal = "DoReceipting"
	SignalDoConfirming Signal = "DoConfirming"
	SignalOnConfirmed  Signal = "OnConfirmed"
)

type StatDaemon

type StatDaemon interface {
	AddTimeoutObserver(timeoutFunc func(s Signal)) error

	RemoveObserver(timeoutFunc func(s Signal))

	PowerOn(context.Context)

	SendingSignal(bindex uint64, s Signal)
}

type TimeoutConfig

type TimeoutConfig struct {
	PackingDuration time.Duration

	MiningDuration time.Duration

	ReceiptDuration time.Duration

	ConfirmDuration time.Duration
}

Jump to

Keyboard shortcuts

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