Documentation
¶
Overview ¶
Package interfaces defines core interfaces used across the sync kit packages to avoid circular dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version interface {
// Compare returns -1 if this version is before other, 0 if equal, 1 if after
Compare(other Version) int
// String returns a string representation of the version
String() string
// IsZero returns true if this is the zero/initial version
IsZero() bool
}
Version represents a point-in-time snapshot for sync operations. Users can implement different versioning strategies (timestamps, hashes, vector clocks).
Click to show internal directories.
Click to hide internal directories.