scraper

package
v0.0.0-...-ba78d77 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: BSD-3-Clause Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(clientID string, secretKey string, refreshToken string, httpClient *http.Client, client *goesi.APIClient)

Initialize initializes the scraper

func ScrapeMarket

func ScrapeMarket(regionID int64, lastModified time.Time) ([]byte, *time.Time, *time.Time, error)

ScrapeMarket gets a market from ESI and pushes it to supported backends

Types

type ESIOrder

type ESIOrder struct {
	OrderID      int64     `json:"order_id"`
	TypeID       int64     `json:"type_id"`
	LocationID   int64     `json:"location_id"`
	VolumeTotal  int64     `json:"volume_total"`
	VolumeRemain int64     `json:"volume_remain"`
	MinVolume    int64     `json:"min_volume"`
	Price        float64   `json:"price"`
	IsBuyOrder   bool      `json:"is_buy_order"`
	Duration     int64     `json:"duration"`
	Issued       time.Time `json:"issued"`
	Range        string    `json:"range"`
}

ESIOrder is an order returned by the ESI API.

Jump to

Keyboard shortcuts

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