A small library for subscribing to zKillboard's RedisQ kill feed, written in Golang. The name originates from me being incredibly uncreative and combining "zKillboard", "RedisQ" and "Go".
Package zkillredisqo provides a lightweight library for interfacing with zKillboard's RedisQ service for receiving killmails in realtime.
The library allows for applications to wait for new kills using a channel. Errors are handed off to the calling app via a separate error channel.
go get -u github.com/MorpheusXAUT/zkillredisqo
A tiny sample app demonstrating the usage of zkillredisqo is included in examples/simple.go
.
In general, applications should create a Poller
and receive messages from its Kills
and Errors
channels:
package main
import (
"github.com/MorpheusXAUT/zkillredisqo"
"log"
)
func main() {
poller := zkillredisqo.NewPoller(nil)
for {
select {
case kill := <-poller.Kills:
log.Printf("%+v\n", kill)
break
case err := <-poller.Errors:
log.Printf("*** ERROR: %v\n", err)
break
}
}
}
see https://godoc.org/github.com/MorpheusXAUT/zkillredisqo
zKillboard's RedisQ is courtesy of zKillboard, legal information can be found here. Great thanks to Squizz Caphinator for preventing this service.
EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide. All other trademarks are the property of their respective owners. EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork, screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of CCP hf. CCP hf. has granted permission to MorpheusXAUT to use EVE Online and all associated logos and designs for promotional and information purposes on its website but does not endorse, and is not in any way affiliated with, MorpheusXAUT. CCP is in no way responsible for the content on or functioning of this website, nor can it be liable for any damage arising from the use of this website.