syncer

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBTPHandler

type IBTPHandler func(ibtp *pb.IBTP)

type Syncer

type Syncer interface {
	// Start starts the service of syncer
	Start() error

	// Stop stops the service of syncer
	Stop() error

	RegisterIBTPHandler(handler IBTPHandler) error
}

type WrapperSyncer

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

WrapperSyncer represents the necessary data for sync tx wrappers from bitxhub

func New

func New(ag agent.Agent, lite lite.Lite, storage storage.Storage) (*WrapperSyncer, error)

New creates instance of WrapperSyncer given agent interacting with bitxhub, validators addresses of bitxhub and local storage

func (*WrapperSyncer) RegisterIBTPHandler

func (syncer *WrapperSyncer) RegisterIBTPHandler(handler IBTPHandler) error

func (*WrapperSyncer) Start

func (syncer *WrapperSyncer) Start() error

Start implements Syncer

func (*WrapperSyncer) Stop

func (syncer *WrapperSyncer) Stop() error

Stop implements Syncer

Directories

Path Synopsis
Package mock_syncer is a generated GoMock package.
Package mock_syncer is a generated GoMock package.

Jump to

Keyboard shortcuts

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