Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RuptureExtractSimple ¶
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
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
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
Click to show internal directories.
Click to hide internal directories.