zkillboard_redisq

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alliance

type Alliance struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type ApiResponse

type ApiResponse struct {
	Package *Package `json:"package"`
}

type Attacker

type Attacker struct {
	Alliance       Alliance    `json:"alliance"`
	ShipType       ShipType    `json:"shipType"`
	Corporation    Corporation `json:"corporation"`
	Character      Character   `json:"character"`
	DamageDoneStr  string      `json:"damageDone_str"`
	WeaponType     WeaponType  `json:"weaponType"`
	FinalBlow      bool        `json:"finalBlow"`
	SecurityStatus float64     `json:"securityStatus"`
	DamageDone     int64       `json:"damageDone"`
}

type Character

type Character struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type Corporation

type Corporation struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type Icon

type Icon struct {
	Href string `json:"href"`
}

type Item

type Item struct {
	Singleton            int64    `json:"singleton"`
	ItemType             ItemType `json:"itemType"`
	QuantityDestroyedStr string   `json:"quantityDestroyed_str,omitempty"`
	Flag                 int64    `json:"flag"`
	FlagStr              string   `json:"flag_str"`
	SingletonStr         string   `json:"singleton_str"`
	QuantityDestroyed    int64    `json:"quantityDestroyed,omitempty"`
	QuantityDroppedStr   string   `json:"quantityDropped_str,omitempty"`
	QuantityDropped      int64    `json:"quantityDropped,omitempty"`
}

type ItemType

type ItemType struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type Killmail

type Killmail struct {
	SolarSystem      SolarSystem `json:"solarSystem"`
	KillID           int64       `json:"killID"`
	KillTime         string      `json:"killTime"`
	Attackers        []Attacker  `json:"attackers"`
	AttackerCount    int64       `json:"attackerCount"`
	Victim           Victim      `json:"victim"`
	KillIDStr        string      `json:"killID_str"`
	AttackerCountStr string      `json:"attackerCount_str"`
	War              War         `json:"war"`
}

type Package

type Package struct {
	KillID   int64    `json:"killID"`
	Killmail Killmail `json:"killmail"`
	Zkb      Zkb      `json:"zkb"`
}

type Position

type Position struct {
	Y float64 `json:"y"`
	X float64 `json:"x"`
	Z float64 `json:"z"`
}

type ShipType

type ShipType struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type SolarSystem

type SolarSystem struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
}

type Victim

type Victim struct {
	Alliance       Alliance    `json:"alliance"`
	DamageTaken    int64       `json:"damageTaken"`
	Items          []Item      `json:"items"`
	DamageTakenStr string      `json:"damageTaken_str"`
	Character      Character   `json:"character"`
	ShipType       ShipType    `json:"shipType"`
	Corporation    Corporation `json:"corporation"`
	Position       Position    `json:"position"`
}

type War

type War struct {
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	IDStr string `json:"id_str"`
}

type WeaponType

type WeaponType struct {
	IDStr string `json:"id_str"`
	Href  string `json:"href"`
	ID    int64  `json:"id"`
	Name  string `json:"name"`
	Icon  Icon   `json:"icon"`
}

type ZKillboardRedisQClient

type ZKillboardRedisQClient struct{}

func NewZKillboardRedisQClient

func NewZKillboardRedisQClient() *ZKillboardRedisQClient

func (ZKillboardRedisQClient) Listen

func (z ZKillboardRedisQClient) Listen(killPackages chan *Package, errs chan error)

func (ZKillboardRedisQClient) ListenOnce

func (z ZKillboardRedisQClient) ListenOnce() (*Package, []error)

type Zkb

type Zkb struct {
	LocationID  int64   `json:"locationID"`
	Hash        string  `json:"hash"`
	FittedValue float64 `json:"fittedValue"`
	TotalValue  float64 `json:"totalValue"`
	Points      int64   `json:"points"`
	Npc         bool    `json:"npc"`
	Href        string  `json:"href"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL