Documentation ¶
Overview ¶
Package sorting includes utilities for ordering slices of Entries.
Index ¶
- func Compare(a, b iface.IPFSLogEntry) (int, error)
- func First(_, _ iface.IPFSLogEntry) (int, error)
- func FirstWriteWins(a, b iface.IPFSLogEntry) (int, error)
- func LastWriteWins(a, b iface.IPFSLogEntry) (int, error)
- func NoZeroes(compFunc func(a, b iface.IPFSLogEntry) (int, error)) func(a, b iface.IPFSLogEntry) (int, error)
- func Reverse(a []iface.IPFSLogEntry)
- func Sort(compFunc func(a, b iface.IPFSLogEntry) (int, error), ...)
- func SortByClockID(a, b iface.IPFSLogEntry, ...) (int, error)
- func SortByClocks(a, b iface.IPFSLogEntry, ...) (int, error)
- func SortByEntryHash(a, b iface.IPFSLogEntry) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstWriteWins ¶
func FirstWriteWins(a, b iface.IPFSLogEntry) (int, error)
func LastWriteWins ¶
func LastWriteWins(a, b iface.IPFSLogEntry) (int, error)
func NoZeroes ¶
func NoZeroes(compFunc func(a, b iface.IPFSLogEntry) (int, error)) func(a, b iface.IPFSLogEntry) (int, error)
func Reverse ¶
func Reverse(a []iface.IPFSLogEntry)
func Sort ¶
func Sort(compFunc func(a, b iface.IPFSLogEntry) (int, error), values []iface.IPFSLogEntry, reverse bool)
func SortByClockID ¶
func SortByClockID(a, b iface.IPFSLogEntry, resolveConflict func(a iface.IPFSLogEntry, b iface.IPFSLogEntry) (int, error)) (int, error)
func SortByClocks ¶
func SortByClocks(a, b iface.IPFSLogEntry, resolveConflict func(a iface.IPFSLogEntry, b iface.IPFSLogEntry) (int, error)) (int, error)
func SortByEntryHash ¶
func SortByEntryHash(a, b iface.IPFSLogEntry) (int, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.