sync

package
v0.0.0-...-4502c18 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainSyncer

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

func (*ChainSyncer) SetConfig

func (s *ChainSyncer) SetConfig(cf *config.Config)

func (*ChainSyncer) Start

func (s *ChainSyncer) Start()

func (*ChainSyncer) Stop

func (s *ChainSyncer) Stop()

type PeerSyncer

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

func (*PeerSyncer) SetConfig

func (s *PeerSyncer) SetConfig(cf *config.Config)

func (*PeerSyncer) Start

func (s *PeerSyncer) Start()

func (*PeerSyncer) Stop

func (s *PeerSyncer) Stop()

type SnapShotSyncer

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

func (*SnapShotSyncer) SetConfig

func (s *SnapShotSyncer) SetConfig(cf *config.Config)

func (*SnapShotSyncer) Start

func (s *SnapShotSyncer) Start()

func (*SnapShotSyncer) Stop

func (s *SnapShotSyncer) Stop()

type Syncer

type Syncer interface {
	// Start starts sync.
	Start()

	// Stop stops sync.
	Stop()

	// SetConfig put config in syncer.
	SetConfig(cf *config.Config)
}

Jump to

Keyboard shortcuts

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