breaksync

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RuptureExtractSimple

func RuptureExtractSimple(a string) string

RuptureExtractSimple is a basic extracter that return input

func SourceBasicKeyer

func SourceBasicKeyer(e interface{}) string

SourceBasicKeyer basic keyer for string conversion

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 {
	Current interface{}
	// contains filtered or unexported fields
}

Source of data in a break/sync algorithm

func NewSliceSource

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

NewSliceSource creates source from given slice

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 {
	Sources []*Source
	// contains filtered or unexported fields
}

Synchronization in a break/sync algorithm

func NewSynchronization

func NewSynchronization(sources []*Source, ruptures []*Rupture) *Synchronization

NewSynchronization creates and initializes Synchronization

func (*Synchronization) Run

func (s *Synchronization) Run(business func(*Synchronization)) error

Run start break/sync algorithm

Jump to

Keyboard shortcuts

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