tImplement dam-gource binary for fetching Gource logs from Redis. - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6a0b869fb0824f40c26b43bce91795db2ddeaeaa
DIR parent 37b7197901df1ec3d6ceef11a06a456936523219
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 27 Oct 2018 13:28:10 +0200
Implement dam-gource binary for fetching Gource logs from Redis.
Diffstat:
A cmd/dam-gource/main.go | 19 +++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)
---
DIR diff --git a/cmd/dam-gource/main.go b/cmd/dam-gource/main.go
t@@ -0,0 +1,19 @@
+package main
+
+import (
+ "fmt"
+
+ lib "github.com/parazyd/tor-dam/pkg/damlib"
+)
+
+func main() {
+ pubsub := lib.RedisCli.Subscribe(lib.PubSubChan)
+ _, err := pubsub.Receive()
+ lib.CheckError(err)
+
+ ch := pubsub.Channel()
+
+ for msg := range ch {
+ fmt.Println(msg.Payload)
+ }
+}