breaksync

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rupture

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

Rupture in a break/sync algorithm

func NewRupture

func NewRupture(name string, extract func(string) string) *Rupture

NewRupture creates and initialize Rupture

type Source

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

Source of data in a break/sync algorithm

func NewSliceSource added in v4.13.0

func NewSliceSource(arr []interface{}, keyer func(interface{}) string, readRupture *Rupture) *Source

NewSliceSource is a source from a slice, read sequentially

func NewSource

func NewSource(reader func() (interface{}, error), keyer func(interface{}) string, readRupture *Rupture) *Source

NewSource creates and initialize Source

type Synchronization

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

Synchronization in a break/sync algorithm

func NewSynchronization

func NewSynchronization() *Synchronization

NewSynchronization creates and initializes Synchronization

func (*Synchronization) AddRuptures added in v4.13.0

func (s *Synchronization) AddRuptures(ruptures ...*Rupture) *Synchronization

AddRuptures adds given rupture

func (*Synchronization) AddSources added in v4.13.0

func (s *Synchronization) AddSources(sources ...*Source) *Synchronization

AddSources adds given source

func (*Synchronization) Run

func (s *Synchronization) Run(business func(uint64, []interface{}) error) error

Run start break/sync algorithm

Jump to

Keyboard shortcuts

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