Documentation
¶
Index ¶
- func FetchKills(cfg config.Config, kills chan<- ZkillPackage, done chan struct{})
- func IsAnnotationError(err error) bool
- func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)
- type Attacker
- type CrestConstellation
- type CrestRegion
- type CrestSystem
- type EveAPIItem
- type EvePlayer
- type Item
- type Killmail
- type Position
- type SolarSystem
- type SystemFetcher
- type Victim
- type ZkillKill
- type ZkillMetadata
- type ZkillPackage
- type Zkillbeat
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 ¶
Types ¶
type Attacker ¶
type Attacker struct {
EvePlayer
FinalBlow bool `json:"finalBlow"`
DamageDone int `json:"damageDone"`
Faction EveAPIItem `json:"faction"`
}
type CrestConstellation ¶
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 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 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 ZkillKill ¶
type ZkillKill struct {
KillID int `json:"killID"`
Kill Killmail `json:"killmail"`
Metadata ZkillMetadata `json:"zkb"`
}
type ZkillMetadata ¶
type ZkillPackage ¶
type ZkillPackage struct {
Payload ZkillKill `json:"package"`
}
Click to show internal directories.
Click to hide internal directories.