ogsyncer

package
v0.0.0-...-a53bfeb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTolerantHeightDiff = 0 // ogsyncer will start syncing if myHeight + MaxTolerantHeightDiff < knownMaxPeerHeight
View Source
const SyncCheckIntervalSeconds int = 10 // max check interval for syncing a height

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultUnknownManager

type DefaultUnknownManager struct {
	Unknowns list.List
}

func (*DefaultUnknownManager) Enqueue

func (d *DefaultUnknownManager) Enqueue(task og_interface.Unknown)

type IntSyncer

type IntSyncer struct {
	Fetcher ogsyncer_interface.ResourceFetcher
	// contains filtered or unexported fields
}

func (*IntSyncer) AddSubscriberNewOutgoingMessageEvent

func (b *IntSyncer) AddSubscriberNewOutgoingMessageEvent(transport *transport.PhysicalCommunicator)

notify sending events

func (*IntSyncer) EventChannelPeerLeft

func (b *IntSyncer) EventChannelPeerLeft() chan *og_interface.PeerLeftEvent

func (*IntSyncer) InitDefault

func (b *IntSyncer) InitDefault()

func (*IntSyncer) Name

func (b *IntSyncer) Name() string

func (*IntSyncer) NewHeightDetectedEventChannel

func (b *IntSyncer) NewHeightDetectedEventChannel() chan *og_interface.NewHeightDetectedEvent

func (*IntSyncer) NewIncomingMessageEventChannel

func (b *IntSyncer) NewIncomingMessageEventChannel() chan *transport_interface.IncomingLetter

func (*IntSyncer) Start

func (b *IntSyncer) Start()

func (*IntSyncer) Stop

func (b *IntSyncer) Stop()

Jump to

Keyboard shortcuts

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