Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MorpheusXAUT/zkillredisqo
A small library for subscribing to zKillboard's RedisQ kill feed, written in Golang.
https://github.com/MorpheusXAUT/zkillredisqo
eve-online go golang golang-library zkillboard
Last synced: 3 months ago
JSON representation
A small library for subscribing to zKillboard's RedisQ kill feed, written in Golang.
- Host: GitHub
- URL: https://github.com/MorpheusXAUT/zkillredisqo
- Owner: MorpheusXAUT
- License: mit
- Created: 2017-02-02T16:08:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T22:25:54.000Z (almost 8 years ago)
- Last Synced: 2024-06-21T09:13:54.943Z (5 months ago)
- Topics: eve-online, go, golang, golang-library, zkillboard
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - zkillredisqo
README
zkillredisqo
=========[![Build Status](https://travis-ci.org/MorpheusXAUT/zkillredisqo.svg?branch=master)](https://travis-ci.org/MorpheusXAUT/zkillredisqo) [![GoDoc](https://godoc.org/github.com/MorpheusXAUT/zkillredisqo?status.svg)](https://godoc.org/github.com/MorpheusXAUT/zkillredisqo)
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.
Installation
------```bash
go get -u github.com/MorpheusXAUT/zkillredisqo
```Usage
------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:```go
package mainimport (
"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
}
}
}
```Documentation
------
see https://godoc.org/github.com/MorpheusXAUT/zkillredisqoAttribution
------### zKillboard
zKillboard's RedisQ is courtesy of [zKillboard](https://zkillboard.com), legal information can be found [here](https://zkillboard.com/information/legal/). Great thanks to [Squizz Caphinator](https://zkillboard.com/character/1633218082/) for preventing this service.### CCP
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.License
------[MIT License](https://opensource.org/licenses/mit-license.php)