staticdump

package
v0.0.0-...-0af058b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLastStaticDumpChecksum

func FindLastStaticDumpChecksum(client *pester.Client) (string, error)

FindLastStaticDumpChecksum returns the URL of the last eve static data dump

func FindLastStaticDumpUrl

func FindLastStaticDumpUrl(client *pester.Client) (string, error)

Types

type Blueprint

type Blueprint struct {
	BlueprintTypeID int64 `yaml:"blueprintTypeID"`
	Activities      struct {
		Manufacturing struct {
			Materials []struct {
				Quantity int64
				TypeID   int64 `yaml:"typeID"`
			}
			Products []struct {
				Quantity int64
				TypeID   int64 `yaml:"typeID"`
			}
		}
	}
}

Blueprint is an eve online blueprint

type StaticFetcher

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

StaticFetcher continually fetches a new static dump and updates the type database with the current types

func NewStaticFetcher

func NewStaticFetcher(client *pester.Client, dbPath string, callback func(typeDB typedb.TypeDB)) (*StaticFetcher, error)

NewStaticFetcher returns a new static data fetcher

func (*StaticFetcher) Close

func (f *StaticFetcher) Close() error

Close cleans up the worker

func (*StaticFetcher) RunOnce

func (f *StaticFetcher) RunOnce() error

RunOnce will fetch, parse and call the callback with a fresh type database

type Type

type Type struct {
	GroupID       int64 `yaml:"groupID"`
	MarketGroupID int64 `yaml:"marketGroupID"`
	Name          struct {
		En string
	}
	Published bool
	Volume    float64
	BasePrice float64
}

Type is an eve online type

Jump to

Keyboard shortcuts

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