aboutsummaryrefslogtreecommitdiff
path: root/librsync/nirvana.go
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-03-27 00:10:32 +0100
committerKevin Chabowski <kevin@kch42.de>2013-03-27 00:10:32 +0100
commit2d56d29ba5c20a582119c1bbfa48f2dbcbb07aaf (patch)
tree3c2f0d140b2f02645018d0b1cb6ac698192488fa /librsync/nirvana.go
parentf211bc603ec4cf6b50ea2768100cb43510bad72c (diff)
downloadgolibrsync-2d56d29ba5c20a582119c1bbfa48f2dbcbb07aaf.tar.gz
golibrsync-2d56d29ba5c20a582119c1bbfa48f2dbcbb07aaf.tar.bz2
golibrsync-2d56d29ba5c20a582119c1bbfa48f2dbcbb07aaf.zip
Loading signatures and creating deltas implemented
Type SignatureGen is now type Job, since we can use the same code for other librsync operations too.
Diffstat (limited to 'librsync/nirvana.go')
-rw-r--r--librsync/nirvana.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/librsync/nirvana.go b/librsync/nirvana.go
new file mode 100644
index 0000000..a3b098f
--- /dev/null
+++ b/librsync/nirvana.go
@@ -0,0 +1,8 @@
+package librsync
+
+// nirvana is a io.Writer that will discard all input (like /dev/null)
+type nirvana struct{}
+
+func (n *nirvana) Write(p []byte) (int, error) {
+ return len(p), nil
+}