Documentation ¶
Index ¶
- func DeleteStaticData(config Configuration) error
- func PopulateStaticData(config Configuration) error
- type AppConfig
- type Client
- type Configuration
- type DB
- func (db *DB) DeleteStaticData() error
- func (db *DB) GetSystems() (systems []ESISystem, err error)
- func (db *DB) InsertAsteroidBelt(belt ESIAsteroidBelt) error
- func (db *DB) InsertCategory(category ESICategory) error
- func (db *DB) InsertConstellation(cons ESIConstellation) error
- func (db *DB) InsertGroup(group ESIGroup) error
- func (db *DB) InsertMoon(moon ESIMoon) error
- func (db *DB) InsertPlanet(planet ESIPlanet) error
- func (db *DB) InsertRegion(region ESIRegion) error
- func (db *DB) InsertStar(star ESIStar) error
- func (db *DB) InsertStargate(gate ESIStargate) error
- func (db *DB) InsertStation(station ESIStation) error
- func (db *DB) InsertSystem(system ESISystem) error
- func (db *DB) InsertType(typeESI ESIType) error
- type DatabaseConfig
- type ESIAsteroidBelt
- type ESICategory
- type ESIConstellation
- type ESIGroup
- type ESIMoon
- type ESIPlanet
- type ESIPosition
- type ESIRegion
- type ESIStar
- type ESIStargate
- type ESIStargateDestination
- type ESIStation
- type ESISystem
- type ESISystemPlanets
- type ESIType
- type HttpConfig
- type TypeDogmaAttribute
- type TypeDogmaEffect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteStaticData ¶
func DeleteStaticData(config Configuration) error
func PopulateStaticData ¶
func PopulateStaticData(config Configuration) error
Types ¶
type Client ¶
type Configuration ¶
type Configuration struct { Database DatabaseConfig Web HttpConfig App AppConfig }
type DB ¶
func GetDatabaseHandle ¶
func GetDatabaseHandle(config Configuration) (db *DB, err error)
func (*DB) DeleteStaticData ¶
func (*DB) GetSystems ¶
func (*DB) InsertAsteroidBelt ¶
func (db *DB) InsertAsteroidBelt(belt ESIAsteroidBelt) error
func (*DB) InsertCategory ¶
func (db *DB) InsertCategory(category ESICategory) error
func (*DB) InsertConstellation ¶
func (db *DB) InsertConstellation(cons ESIConstellation) error
func (*DB) InsertGroup ¶
func (*DB) InsertMoon ¶
func (*DB) InsertPlanet ¶
func (*DB) InsertRegion ¶
func (*DB) InsertStar ¶
func (*DB) InsertStargate ¶
func (db *DB) InsertStargate(gate ESIStargate) error
func (*DB) InsertStation ¶
func (db *DB) InsertStation(station ESIStation) error
func (*DB) InsertSystem ¶
func (*DB) InsertType ¶
type DatabaseConfig ¶
type ESIAsteroidBelt ¶
type ESIAsteroidBelt struct { BeltID int32 `json:"belt_id,omitempty" bson:"_id"` Name string `json:"name" bson:"name"` Position ESIPosition `json:"position" bson:"position"` SystemID int32 `json:"system_id" bson:"system_id"` }
type ESICategory ¶
type ESIConstellation ¶
type ESIConstellation struct { ConstellationID int `json:"constellation_id" bson:"_id"` Name string `json:"name" bson:"name"` Systems []int `json:"systems" bson:"systems"` Postion ESIPosition `json:"position" bson:"position"` RegionID int `json:"region_id" bson:"region_id"` }
type ESIMoon ¶
type ESIMoon struct { MoonID int32 `json:"moon_id" bson:"_id"` Name string `json:"name" bson:"name"` Position ESIPosition `json:"position" bson:"position"` SystemID int32 `json:"system_id" bson:"system_id"` }
type ESIPlanet ¶
type ESIPlanet struct { Name string `json:"name" bson:"name"` PlanetID int32 `json:"planet_id" bson:"_id"` Position ESIPosition `json:"position" bson:"position"` SystemID int32 `json:"system_id" bson:"system_id"` TypeID int32 `json:"type_id" bson:"type_id"` }
type ESIPosition ¶
type ESIStar ¶
type ESIStar struct { Age int64 `json:"age" bson:"age"` Luminosity float64 `json:"luminosity" bson:"luminosity"` Name string `json:"name" bson:"name"` Radius int64 `json:"radius" bson:"radius"` SolarSystemID int `json:"solar_system_id" bson:"solar_system_id"` SpectralClass string `json:"spectral_class" bson:"spectral_class"` Temperature int `json:"temperature" bson:"temperature"` TypeID int `json:"type_id" bson:"type_id"` StarID int `json:"star_id,omitempty" bson:"_id"` }
type ESIStargate ¶
type ESIStargate struct { Destination ESIStargateDestination `json:"destination" bson:"destination"` Name string `json:"name" bson:"name"` Position ESIPosition `json:"position" bson:"position"` StargateID int32 `json:"stargate_id" bson:"_id"` SystemID int32 `json:"system_id" bson:"system_id"` TypeID int32 `json:"type_id" bson:"type_id"` }
type ESIStargateDestination ¶
type ESIStation ¶
type ESIStation struct { MaxDockableShipVolume float64 `json:"max_dockable_ship_volume" bson:"max_dockable_ship_volume"` Name string `json:"name" bson:"name"` OfficeRentalCost float64 `json:"office_rental_cost" bson:"office_rental_cost"` Owner int32 `json:"owner" bson:"owner"` Position ESIPosition `json:"position" bson:"position"` RaceID int32 `json:"race_id" bson:"race_id"` ReprocessingEfficiency float32 `json:"reprocessing_efficiency" bson:"reprocessing_efficiency"` Services []string `json:"services" bson:"services"` StationID int32 `json:"station_id" bson:"_id"` SystemID int32 `json:"system_id" bson:"system_id"` TypeID int32 `json:"type_id" bson:"type_id"` }
type ESISystem ¶
type ESISystem struct { ConstellationID int `json:"constellation_id" bson:"constellation_id"` Name string `json:"name" bson:"name"` Planets []ESISystemPlanets `json:"planets" bson:"planets"` Position ESIPosition `json:"position" bson:"position"` SecurityClass string `json:"security_class" bson:"security_class"` SecurityStatus float64 `json:"security_status" bson:"security_status"` StarID int `json:"star_id" bson:"star_id"` Stargates []int `json:"stargates" bson:"stargates"` Stations []int `json:"stations" bson:"stations"` SystemID int `json:"system_id" bson:"_id"` }
type ESISystemPlanets ¶
type ESIType ¶
type ESIType struct { Capacity float64 `json:"capacity,omitempty" bson:"capacity,omitempty"` Description string `json:"description" bson:"description"` DogmaAttributes []TypeDogmaAttribute `json:"dogma_attributes,omitempty" bson:"dogma_attributes,omitempty"` DogmaEffects []TypeDogmaEffect `json:"dogma_effects,omitempty" bson:"dogma_effects,omitempty"` GraphicID int32 `json:"graphic_id,omitempty" bson:"graphic_id,omitempty"` GroupID int32 `json:"group_id" bson:"group_id"` IconID int32 `json:"icon_id,omitempty" bson:"icon_id,omitempty"` MarketGroupID int32 `json:"market_group_id,omitempty" bson:"market_group_id,omitempty"` Mass float64 `json:"mass,omitempty" bson:"mass,omitempty"` Name string `json:"name" bson:"name"` PackagedVolume float64 `json:"packaged_volume,omitempty" bson:"packaged_volume,omitempty"` PortionSize int32 `json:"portion_size,omitempty" bson:"portion_size,omitempty"` Published bool `json:"published" bson:"published"` Radius float64 `json:"radius,omitempty" bson:"radius,omitempty"` TypeID int32 `json:"type_id" bson:"_id"` Volume float64 `json:"volume,omitempty" bson:"volume,omitempty"` }
type HttpConfig ¶
type TypeDogmaAttribute ¶
type TypeDogmaEffect ¶
Click to show internal directories.
Click to hide internal directories.