sdetools

package module
v0.0.0-...-9a5d4c9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadYamlFile

func LoadYamlFile(path string, to interface{}) error

Types

type Group

type Group struct {
	Anchorable           bool              `yaml:"anchorable"`
	Anchored             bool              `yaml:"anchored"`
	CategoryId           int               `yaml:"categoryID"`
	FittableNonSingleton bool              `yaml:"fittableNonSingleton"`
	Name                 map[string]string `yaml:"name"`
	Published            bool              `yaml:"published"`
	UseBasePrice         bool              `yaml:"useBasePrice"`
}

type Groups

type Groups map[int64]Group

type MarketType

type MarketType struct {
	GroupId       int               `yaml:"groupID"`
	MarketGroupId int               `yaml:"margetGroupID"`
	Name          map[string]string `yaml:"name"`
	Published     bool              `yaml:"published"`
	Description   map[string]string `yaml:"description"`
	Volume        float64           `yaml:"volume"`
	Mass          float64           `yaml:"mass"`
}

type MarketTypes

type MarketTypes map[int64]MarketType

type SDE

type SDE struct {
	BaseDir string
	// contains filtered or unexported fields
}

func (*SDE) BuildBoltDB

func (s *SDE) BuildBoltDB()

Pre-build a BoltDB database of all the static data allowing fast local node access for all data without requiring it all in memory at all times, useful for running on very small compute instances

func (*SDE) GetGroupById

func (s *SDE) GetGroupById(groupid int) (group *Group, found bool)

func (*SDE) GetSystemNameById

func (s *SDE) GetSystemNameById(system int) (string, bool)

func (*SDE) GetTypeByExactName

func (s *SDE) GetTypeByExactName(name string) (mt *MarketType, found bool)

func (*SDE) GetTypeById

func (s *SDE) GetTypeById(typeid int) (mt *MarketType, found bool)

func (*SDE) Init

func (s *SDE) Init()

type SolarSystem

type SolarSystem struct {
	Id     int `yaml:"solarSystemID"`
	NameId int `yaml:"solarSystemNameID"`

	Name          string
	Region        *regions.Region
	Constellation string

	Security float64 `yaml:"security"`

	Corridor      bool `yaml:"corridor"`
	Fringe        bool `yaml:"fringe"`
	Hub           bool `yaml:"hub"`
	Border        bool `yaml:"border"`
	International bool `yaml:"international"`

	Stargates map[int]Stargate `yaml:"stargates"`
}

type Stargate

type Stargate struct {
	Destination int `yaml:"destination"`
	TypeID      int `yaml:"typeID"`
}

type UniqueName

type UniqueName struct {
	Id      int         `yaml:"itemID"`
	Name    interface{} `yaml:"itemName"`
	GroupId int         `yaml:"groupID"`
}

type UniqueNames

type UniqueNames []*UniqueName

Directories

Path Synopsis
tools
y2j

Jump to

Keyboard shortcuts

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