Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Redundancy/go-sync
/ functions
Functions
329 in github.com/Redundancy/go-sync
⨍
Functions
329
◇
Types & classes
63
↓ 1 callers
Method
GetStrongChecksumForBlock
(blockID int)
filechecksum/verifier.go:9
↓ 1 callers
Function
IsSameFile
IsSameFile checks if two file paths are the same file
rsync.go:229
↓ 1 callers
Method
ReadBytes
()
blocksources/blocksourcebase.go:95
↓ 1 callers
Method
RemoveBytes
(bs []byte, length int)
filechecksum/filechecksum.go:48
↓ 1 callers
Method
Reset
Reset the hash to the initial state
rollsum/rollsum_32_base.go:73
↓ 1 callers
Method
Response
()
blocksources/helpers.go:57
↓ 1 callers
Method
SetBlock
Set a whole block of blockSize
rollsum/rollsum_32_base.go:67
↓ 1 callers
Method
VerifyBlockRange
(startBlockID uint, data []byte)
blocksources/blocksourcebase.go:36
↓ 1 callers
Method
WeakCount
()
index/index.go:93
↓ 1 callers
Function
calculateNumberOfCompletedBlocks
(resultLength int, blockSize int64)
patcher/sequential/sequential.go:135
↓ 1 callers
Method
clear
()
blocksources/helpers.go:24
↓ 1 callers
Function
errorWrapper
(c *cli.Context, f func(*cli.Context) error)
cmd/gosync/common.go:28
↓ 1 callers
Function
formatFileError
(filename string, err error)
cmd/gosync/common.go:56
↓ 1 callers
Method
generate
( resultChan chan ChecksumResults, blocksPerResult uint, compressionFunction CompressionFunction, inputFil
filechecksum/filechecksum.go:144
↓ 1 callers
Function
getOutFile
(filename string)
rsync.go:213
↓ 1 callers
Function
getTempFile
()
rsync.go:221
↓ 1 callers
Function
isBordering
(a, b *BlockSpan, blockSize int64)
comparer/merger.go:85
↓ 1 callers
Method
loop
()
blocksources/blocksourcebase.go:131
↓ 1 callers
Function
multithreadedMatching
( localFile *os.File, idx *index.ChecksumIndex, localFileSize, matcherCount int64, blocksize uint, )
cmd/gosync/common.go:238
↓ 1 callers
Method
sendIfPending
()
blocksources/helpers.go:64
↓ 1 callers
Function
setupServer
set up a http server locally that will respond predictably to ranged requests
http_test.go:35
↓ 1 callers
Method
startFindMatchingBlocks_int
* TODO: When matching duplicated blocks, a channel of BlockMatchResult slices would be more efficient */
comparer/comparer.go:87
↓ 1 callers
Function
toPatcherFoundSpan
(sl comparer.BlockSpanList, blockSize int64)
rsync.go:324
↓ 1 callers
Function
toPatcherMissingSpan
(sl comparer.BlockSpanList, blockSize int64)
rsync.go:337
↓ 1 callers
Function
withinFirstBlockOfLocalBlocks
(currentBlock uint, localBlocks []patcher.FoundBlockSpan)
patcher/sequential/sequential.go:131
↓ 1 callers
Function
withinFirstBlockOfRemoteBlocks
(currentBlock uint, remoteBlocks []patcher.MissingBlockSpan)
patcher/sequential/sequential.go:127
↓ 1 callers
Function
writeHeaders
( f *os.File, magic string, blocksize uint32, filesize int64, versions []uint16, )
cmd/gosync/common.go:138
Method
AddByte
(b byte)
filechecksum/filechecksum.go:44
Method
AddBytes
(bs []byte)
filechecksum/filechecksum.go:47
Function
BenchmarkIncrementalRollsum32
This is the benchmark where Rollsum should beat a full MD5 for each blocksize
rollsum/rollsum_32_test.go:256
Function
BenchmarkIncrementalRollsum32WithC2
The C2 veersion should avoid all allocations in the main loop, and beat the pants off the other versions
rollsum/rollsum_32_test.go:277
Function
BenchmarkIndex1024
(b *testing.B)
index/index_bench_test.go:12
Function
BenchmarkIndex8192
(b *testing.B)
index/index_bench_test.go:38
Function
BenchmarkIndexAsListBinarySearch8192
Check how fast a sorted list of 8192 items would be
index/index_bench_test.go:64
Function
BenchmarkIndexAsListLinearSearch8192
Check how fast a sorted list of 8192 items would be Checking for cache coherency gains
index/index_bench_test.go:83
Function
BenchmarkIndexComparisons
(b *testing.B)
gosync_test.go:85
Function
BenchmarkNonRepeatingSequence
(b *testing.B)
util/readers/nonrepeating_test.go:46
Function
BenchmarkRollsum32
(b *testing.B)
rollsum/rollsum_32_test.go:207
Function
BenchmarkRollsum32Base
(b *testing.B)
rollsum/rollsum_32_test.go:239
Function
BenchmarkRollsum32_8096
(b *testing.B)
rollsum/rollsum_32_test.go:223
Function
BenchmarkSingleWrites
This should have no allocations!
circularbuffer/noalloc_test.go:170
Function
BenchmarkStrongComparison
(b *testing.B)
comparer/comparer_bench_test.go:56
Function
BenchmarkWeakComparison
(b *testing.B)
comparer/comparer_bench_test.go:34
Function
Benchmark_256SplitBinarySearch
(b *testing.B)
index/index_bench_test.go:104
Function
Benchmark_256Split_Map
* This is currently the best performing contender for the index data structure for weak checksum lookups. */
index/index_bench_test.go:130
Method
BlockSize
The most efficient byte length to call Write with
rollsum/rollsum_32.go:53
Function
Build
(c *cli.Context)
cmd/gosync/build.go:32
Method
Close
Close - add file path information to closing a file
rsync.go:269
Method
Close
()
rsync.go:283
Method
Close
()
rsync.go:292
Function
Diff
(c *cli.Context)
cmd/gosync/diff.go:32
Method
DoRequest
(startOffset int64, endOffset int64)
blocksources/blocksourcebase_test.go:20
Method
DoRequest
(startOffset int64, endOffset int64)
blocksources/blocksourcebase_test.go:31
Method
DoRequest
(startOffset int64, endOffset int64)
blocksources/readseeker_blocksource.go:35
Method
DoRequest
(startOffset int64, endOffset int64)
blocksources/httpblocksource.go:52
Method
Error
()
blocksources/httpblocksource.go:40
Function
Example
()
gosync_test.go:16
Function
ExampleFileChecksumGenerator_LoadChecksumsFromReader
()
filechecksum/filechecksum_test.go:280
Function
Example_httpBlockSource
This is exceedingly similar to the module Example, but uses the http blocksource and a local http server
http_test.go:63
Method
FindStrongChecksum2
(bytes []byte, weak interface{})
rsync.go:64
Method
FindStrongChecksum2
(chk []byte, weak interface{})
comparer/comparer_bench_test.go:19
Method
FindStrongChecksum2
(chk []byte, weak interface{})
comparer/comparer_bench_test.go:30
Method
FindStrongChecksum2
(chk []byte, weak interface{})
index/index.go:117
Method
FindWeakChecksum2
(chk []byte)
comparer/comparer_bench_test.go:15
Method
FindWeakChecksum2
(chk []byte)
comparer/comparer_bench_test.go:26
Method
GetBlockCount
GetBlockCount gets the number of blocks
rsync.go:83
Method
GetBlockStartOffset
(blockID uint)
blocksources/fixed_size_block_resolver.go:9
Method
GetLastBlock
()
rollsum/rollsum_32.go:83
Method
GetLastBlock
the last set of bytes of the size of the circular buffer oldest to newest
comparer/comparer.go:29
Method
GetStrongChecksumForBlock
(blockID int)
rsync.go:65
Method
GetStrongChecksumForBlock
(blockID int)
filechecksum/verifier_test.go:10
Method
GetStrongChecksumForBlock
(blockID int)
filechecksum/verifier_test.go:32
Method
GetStrongChecksumForBlock
(blockID int)
chunks/chunks.go:85
Method
GetStrongChecksumForBlock
(blockID int)
blocksources/httpblocksource_test.go:217
Function
InjectedReader
Injects the second reader into the first at an offset
util/readers/injectedreader.go:8
Method
IsFatal
(err error)
blocksources/blocksourcebase_test.go:24
Method
IsFatal
(err error)
blocksources/blocksourcebase_test.go:35
Method
IsFatal
(err error)
blocksources/readseeker_blocksource.go:52
Method
IsFatal
(err error)
blocksources/httpblocksource.go:108
Method
IsFatal
If an error raised by DoRequest should cause BlockSourceBase to give up, return true
blocksources/blocksourcebase.go:21
Method
Len
Sortable interface
index/index.go:128
Method
Len
()
blocksources/helpers.go:75
Method
Len
()
blocksources/helpers.go:101
Method
Len
()
blocksources/sortableBlockResponse.go:9
Method
Less
(than llrb.Item)
comparer/merger.go:46
Method
Less
(than llrb.Item)
comparer/merger.go:58
Method
Less
(than llrb.Item)
comparer/merger.go:69
Method
Less
(i, j int)
comparer/merger.go:246
Method
Less
Sortable interface
index/index.go:138
Method
Less
(i, j int)
blocksources/helpers.go:83
Method
Less
(i, j int)
blocksources/helpers.go:109
Method
Less
(i, j int)
blocksources/sortableBlockResponse.go:17
Function
MakeRSync
MakeRSync creates an RSync object using string paths, inferring most of the configuration
rsync.go:94
Function
Patch
Patch a file
cmd/gosync/patch.go:40
Method
Position
()
comparer/merger.go:42
Method
Position
()
comparer/merger.go:54
Method
Position
()
comparer/merger.go:65
Method
Read
(p []byte)
util/readers/nonrepeating.go:25
Method
Read
(p []byte)
util/readers/uniformreader.go:14
Method
RemoveByte
(b byte, length int)
filechecksum/filechecksum.go:45
← previous
next →
101–200 of 329, ranked by callers