beater

package
v0.0.0-...-87c4ca1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchKills

func FetchKills(cfg config.Config, kills chan<- ZkillPackage, done chan struct{})

func IsAnnotationError

func IsAnnotationError(err error) bool

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Creates beater

Types

type Attacker

type Attacker struct {
	EvePlayer
	FinalBlow  bool       `json:"finalBlow"`
	DamageDone int        `json:"damageDone"`
	Faction    EveAPIItem `json:"faction"`
}

type CrestConstellation

type CrestConstellation struct {
	Name   string `json:"name"`
	Region struct {
		Source string `json:"href"`
	}
}

type CrestRegion

type CrestRegion struct {
	Name string `json:"name"`
}

type CrestSystem

type CrestSystem struct {
	EveAPIItem
	Constellation  EveAPIItem `json:"constellation"`
	SecurityStatus float64    `json:"securityStatus"`
}

type EveAPIItem

type EveAPIItem struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Source string `json:"href"`
}

type EvePlayer

type EvePlayer struct {
	Alliance       EveAPIItem `json:"alliance"`
	Corporation    EveAPIItem `json:"corporation"`
	Character      EveAPIItem `json:"character"`
	Ship           EveAPIItem `json:"shipType"`
	WeaponType     EveAPIItem `json:"weaponType"`
	SecurityStatus float64    `json:"securityStatus"`
}

type Item

type Item struct {
	Type              EveAPIItem `json:"itemType"`
	Flag              int        `json:"flag"`
	QuantityDestroyed int        `json:"quantityDestroyed"`
	QuantityDropped   int        `json:"quantityDropped"`
}

type Killmail

type Killmail struct {
	SolarSystem   SolarSystem `json:"solarSystem"`
	KillTime      string      `json:"killTime"`
	AttackerCount int         `json:"attackerCount"`
	Attackers     []Attacker  `json:"attackers"`
	Victim        Victim      `json:"victim"`
	War           EveAPIItem  `json:"war"`
}

type Position

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

type SolarSystem

type SolarSystem struct {
	EveAPIItem
	Region         string  `json:"region"`
	Constellation  string  `json:"constellation"`
	SecurityStatus float64 `json:"SecurityStatus"`
}

type SystemFetcher

type SystemFetcher struct {
	// contains filtered or unexported fields
}

func GetSystemFetcher

func GetSystemFetcher(db *bolt.DB) (SystemFetcher, error)

func (*SystemFetcher) Annotate

func (sf *SystemFetcher) Annotate(system *SolarSystem) error

type Victim

type Victim struct {
	EvePlayer
	DamageTake int      `json:"damageTaken"`
	Items      []Item   `json:"items"`
	Position   Position `json:"position"`
}

type ZkillKill

type ZkillKill struct {
	KillID   int           `json:"killID"`
	Kill     Killmail      `json:"killmail"`
	Metadata ZkillMetadata `json:"zkb"`
}

type ZkillMetadata

type ZkillMetadata struct {
	LocationID int     `json:"locationID"`
	Hash       string  `json:"hash"`
	TotalValue float64 `json:"totalValue"`
	Points     int     `json:"points"`
	Source     string  `json:"href"`
}

type ZkillPackage

type ZkillPackage struct {
	Payload ZkillKill `json:"package"`
}

type Zkillbeat

type Zkillbeat struct {
	// contains filtered or unexported fields
}

func (*Zkillbeat) Run

func (bt *Zkillbeat) Run(b *beat.Beat) error

func (*Zkillbeat) Stop

func (bt *Zkillbeat) Stop()

Jump to

Keyboard shortcuts

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