recovery

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recovery

type Recovery struct {
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(
	c config.Hedera,
	transfers service.Transfers,
	messages service.Messages,
	contracts service.Contracts,
	statusTransferRepo repository.Status,
	statusMessagesRepo repository.Status,
	transferRepo repository.Transfer,
	mirrorClient client.MirrorNode,
	nodeClient client.HederaNode,
) (*Recovery, error)

func (Recovery) ComputeIntervals

func (r Recovery) ComputeIntervals() (transfersFrom int64, messagesFrom int64, to int64, err error)

ComputeIntervals calculates the `from` and `to` unix nano timestamps to be used for the recovery process for both the transfers and messages recovery

func (Recovery) Start

func (r Recovery) Start(transfersFrom, messagesFrom, to int64) error

Start starts the main recovery process

Jump to

Keyboard shortcuts

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