tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 6a0b869fb0824f40c26b43bce91795db2ddeaeaa
parent 37b7197901df1ec3d6ceef11a06a456936523219
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:
Acmd/dam-gource/main.go | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/cmd/dam-gource/main.go b/cmd/dam-gource/main.go @@ -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) + } +}