sync

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SvSync

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

func NewSvSync

func NewSvSync(
	engine ndn.Engine,
	groupPrefix enc.Name,
	onUpdate func(SvSyncUpdate),
) *SvSync

func (*SvSync) GetSeqNo

func (s *SvSync) GetSeqNo(nodeId enc.Name) uint64

func (*SvSync) IncrSeqNo

func (s *SvSync) IncrSeqNo(nodeId enc.Name) uint64

func (*SvSync) SetSeqNo

func (s *SvSync) SetSeqNo(nodeId enc.Name, seqNo uint64) error

func (*SvSync) Start

func (s *SvSync) Start() (err error)

func (*SvSync) Stop

func (s *SvSync) Stop()

type SvSyncUpdate

type SvSyncUpdate struct {
	NodeId enc.Name
	High   uint64
	Low    uint64
}

Jump to

Keyboard shortcuts

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