Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartStopwatch ¶
creates or reinitializes stopwatch entry. Returns false if already exist
func StopStopwatch ¶
Types ¶
type ConfirmationMonitor ¶
func NewConfirmationMonitor ¶
func NewConfirmationMonitor(mapi multiapi.MultiAPI, nanozmq string, log *logging.Logger, aec utils.ErrorCounter) *ConfirmationMonitor
func (*ConfirmationMonitor) CancelConfirmationPolling ¶
func (cmon *ConfirmationMonitor) CancelConfirmationPolling(bundleHash Hash)
can't be called from within OnConfirmation callback
func (*ConfirmationMonitor) OnConfirmation ¶
func (cmon *ConfirmationMonitor) OnConfirmation(bundleHash Hash, callback func(time.Time))
type Confirmer ¶
type Confirmer struct { ConfirmerParams // contains filtered or unexported fields }
func NewConfirmer ¶
func NewConfirmer(params ConfirmerParams, confMon *ConfirmationMonitor) *Confirmer
func (*Confirmer) StartConfirmerTask ¶
func (conf *Confirmer) StartConfirmerTask(bundleTrytes []Trytes) (chan *ConfirmerUpdate, func(), error)
type ConfirmerParams ¶
type ConfirmerParams struct { IotaMultiAPI multiapi.MultiAPI IotaMultiAPIgTTA multiapi.MultiAPI IotaMultiAPIaTT multiapi.MultiAPI TxTagPromote Trytes AddressPromote Hash ForceReattachAfterMin uint64 PromoteChain bool PromoteEverySec uint64 PromoteDisable bool Log *logging.Logger AEC utils.ErrorCounter SlowDownThreshold int ConfmonPollingOnly bool ConfmonNanozmq string }
type ConfirmerUpdate ¶
type UpdateType ¶
type UpdateType int
const ( UPD_NO_ACTION UpdateType = 0 UPD_REATTACH UpdateType = 1 UPD_PROMOTE UpdateType = 2 UPD_CONFIRM UpdateType = 3 UPD_FAILED UpdateType = 4 )
func (UpdateType) ToString ¶
func (ut UpdateType) ToString() string
Click to show internal directories.
Click to hide internal directories.