Documentation ¶
Index ¶
- func LoadYamlFile(path string, to interface{}) error
- type Group
- type Groups
- type MarketType
- type MarketTypes
- type SDE
- func (s *SDE) BuildBoltDB()
- func (s *SDE) GetGroupById(groupid int) (group *Group, found bool)
- func (s *SDE) GetSystemNameById(system int) (string, bool)
- func (s *SDE) GetTypeByExactName(name string) (mt *MarketType, found bool)
- func (s *SDE) GetTypeById(typeid int) (mt *MarketType, found bool)
- func (s *SDE) Init()
- type SolarSystem
- type Stargate
- type UniqueName
- type UniqueNames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadYamlFile ¶
Types ¶
type MarketType ¶
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) GetTypeByExactName ¶
func (s *SDE) GetTypeByExactName(name string) (mt *MarketType, found bool)
func (*SDE) GetTypeById ¶
func (s *SDE) GetTypeById(typeid int) (mt *MarketType, found bool)
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 UniqueName ¶
type UniqueNames ¶
type UniqueNames []*UniqueName
Click to show internal directories.
Click to hide internal directories.