darkapi

package
v1.70.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ApiRoute = "/api"

Variables

This section is empty.

Functions

func GetAmmos

func GetAmmos(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ammos @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Ammo @Router /api/ammos [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetBases

func GetBases(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of NPC Bases @Tags bases @Accept json @Produce json @Success 200 {array} darkapi.Base @Router /api/npc_bases [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight"

func GetCMs

func GetCMs(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of CounterMeasure @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.CounterMeasure @Router /api/counter_measures [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetCommodities

func GetCommodities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Commodities @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Commodity @Router /api/commodities [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight"

func GetEngines

func GetEngines(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Engines @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Engine @Router /api/engines [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetFactions

func GetFactions(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Factions @Tags factions @Accept json @Produce json @Success 200 {array} configs_export.Faction @Router /api/factions [get] @Param filter_to_useful query string false "filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan"

func GetGuns

func GetGuns(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Guns @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Gun @Router /api/guns [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetHashes

func GetHashes(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Hashes @Tags misc @Accept json @Produce json @Success 200 {object} Hashes @Router /api/hashes [get]

func GetHashesData added in v1.69.0

func GetHashesData(app_data *appdata.AppData) map[string]Hash

func GetInfocards

func GetInfocards(webapp *web.Web, app_data *appdata.AppData, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting infocards @Tags misc @Accept json @Produce json @Param request body []string true "Array of nicknames as input, for example [fc_or_gun01_mark02]" @Success 200 {array} InfocardResp @Router /api/infocards [post]

func GetItemsT

func GetItemsT[T Nicknamable](webapp *web.Web, items []T, filter func(items []T) []T) func(w http.ResponseWriter, r *http.Request)

func GetMines

func GetMines(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Mines @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Mine @Router /api/mines [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetMissiles

func GetMissiles(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Missiles @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Gun @Router /api/missiles [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetOreFields

func GetOreFields(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Mining Operations @Tags bases @Accept json @Produce json @Success 200 {array} darkapi.Base @Router /api/mining_operations [get] @Param filter_to_useful query string false "filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "include market goods under 'market goods' key or not. Such data can add a lot of extra weight"

func GetPoBBases

func GetPoBBases(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Player Owned Bases in Bases format. Lists only pobs that have known position coordinates @Tags bases @Accept json @Produce json @Success 200 {array} configs_export.Base @Router /api/pobs/bases [get]

func GetPoBs

func GetPoBs(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Player Owned Bases @Description in difference to Disco API, it is enriched with Nicknames/Infocard Names,Region names @Description Sector coordinates, and extra information written in Infocard (totally reflecting Darkstat itself) @Tags bases @Accept json @Produce json @Success 200 {array} configs_export.PoB @Router /api/pobs [get]

func GetPobGoods

func GetPobGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary PoB Goods @Tags bases @Accept json @Produce json @Success 200 {array} configs_export.PoBGood @Router /api/pob_goods [get]

func GetScanners

func GetScanners(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Scanners @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Scanner @Router /api/scanners [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetShields

func GetShields(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Shields @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Shield @Router /api/shields [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetShips

func GetShips(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ships @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Ship @Router /api/ships [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetThrusters

func GetThrusters(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Thrusters @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Thruster @Router /api/thrusters [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Param include_tech_compat query string false "insert 'true' if wish to include tech compat info too for the item. Such data can add a lot of extra weight"

func GetTractors

func GetTractors(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of tractors @Tags equipment @Accept json @Produce json @Success 200 {array} darkapi.Tractor @Router /api/tractors [get] @Param filter_to_useful query string false "insert 'true' if wish to filter items only to useful, usually they are sold, or have goods, or craftable or findable in loot, or bases that are flight reachable from manhattan" @Param include_market_goods query string false "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight"

func GunHandler added in v1.67.0

func GunHandler(webapp *web.Web, api *Api, guns []configs_export.Gun) func(w http.ResponseWriter, r *http.Request)

func JsonResponseHeader

func JsonResponseHeader(w *http.ResponseWriter)

func PostAmmoMarketGoods

func PostAmmoMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ammo Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input, for example [dsy_annihilator_torpedo_ammo]" @Success 200 {array} MarketGoodResp @Router /api/ammos/market_goods [post]

func PostAmmoTechcompatibilities

func PostAmmoTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ammos Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input" @Success 200 {array} TechCompatResp @Router /api/ammos/tech_compats [post]

func PostBaseMarketGoods

func PostBaseMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of NPC Bases Market Goods @Tags deprecated @Accept json @Produce json @Param request body []cfg.BaseUniNick true "Array of npc base nicknames as input, for example [li01_01_base]" @Success 200 {array} MarketGoodResp @Router /api/npc_bases/market_goods [post]

func PostCMsMarketGoods

func PostCMsMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of CounterMeasure Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of counter nicknames as input, for example [ge_s_cm_01]" @Success 200 {array} MarketGoodResp @Router /api/counter_measures/market_goods [post]

func PostCMsTechcompatibilities

func PostCMsTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of CounterMeasure Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of counter measure nicknames as input" @Success 200 {array} TechCompatResp @Router /api/counter_measures/tech_compats [post]

func PostCommodityMarketGoods

func PostCommodityMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Commodities Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of commodity nicknames as input, for example [commodity_military_salvage]" @Success 200 {array} MarketGoodResp @Router /api/commodities/market_goods [post]

func PostEnginesMarketGoods

func PostEnginesMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Engine Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of engines nicknames as input, for example [ge_kfr_engine_01_add]" @Success 200 {array} MarketGoodResp @Router /api/engines/market_goods [post]

func PostEnginesTechcompatibilities

func PostEnginesTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Engine Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of engines nicknames as input" @Success 200 {array} TechCompatResp @Router /api/engines/tech_compats [post]

func PostGraphPaths

func PostGraphPaths(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary List of time measurements between two NPC bases/PoBs/Ore fields and etc. @Description You query by nicknames of objects from which base/pob/ore fields to which one @Description You receive result how many seconds it takes to reach destination for Transport, Frigate and Freighter @Description If destination is not reachable, you get time equal to Maximum of int32 = 9223372036854775807 @Tags misc @Accept json @Produce json @Param request body []appdata.GraphPathReq true "Request body" @Success 200 {array} appdata.GraphPathsResp @Router /api/graph/paths [post]

func PostGunsMarketGoods

func PostGunsMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Guns Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ship nicknames as input, for example [ai_bomber]" @Success 200 {array} MarketGoodResp @Router /api/guns/market_goods [post]

func PostGunsTechcompatibilities

func PostGunsTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Guns Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of gun nicknames as input, for example [ai_bomber]" @Success 200 {array} TechCompatResp @Router /api/guns/tech_compats [post]

func PostItemsMarketGoodsT

func PostItemsMarketGoodsT[T Marketable](webapp *web.Web, items []T) func(w http.ResponseWriter, r *http.Request)

func PostItemsTechCompatT

func PostItemsTechCompatT[T TechCompatable](webapp *web.Web, items []T) func(w http.ResponseWriter, r *http.Request)

func PostMinesMarketGoods

func PostMinesMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Mines Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of mine nicknames as input, for example [mine02_mark02]" @Success 200 {array} MarketGoodResp @Router /api/mines/market_goods [post]

func PostMinesTechcompatibilities

func PostMinesTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Mines Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of gun nicknames as input, for example [ai_bomber]" @Success 200 {array} TechCompatResp @Router /api/mines/tech_compats [post]

func PostMissilesMarketGoods

func PostMissilesMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Missiles Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ship nicknames as input, for example [fc_or_gun01_mark02]" @Success 200 {array} MarketGoodResp @Router /api/missiles/market_goods [post]

func PostMissilesTechcompatibilities

func PostMissilesTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Missiles Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of missile nicknames as input, for example [fc_or_gun01_mark02]" @Success 200 {array} TechCompatResp @Router /api/missiles/tech_compats [post]

func PostScannersMarketGoods

func PostScannersMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Scanners Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input, for example [dsy_annihilator_torpedo_ammo]" @Success 200 {array} MarketGoodResp @Router /api/scanners/market_goods [post]

func PostScannersTechcompatibilities

func PostScannersTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Scanners Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input" @Success 200 {array} TechCompatResp @Router /api/scanners/tech_compats [post]

func PostShieldsMarketGoods

func PostShieldsMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Shields Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input, for example [ai_shield_hf]" @Success 200 {array} MarketGoodResp @Router /api/shields/market_goods [post]

func PostShieldsTechcompatibilities

func PostShieldsTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Shields Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ammo nicknames as input" @Success 200 {array} TechCompatResp @Router /api/shields/tech_compats [post]

func PostShipMarketGoods

func PostShipMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ship Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ship nicknames as input, for example [ai_bomber]" @Success 200 {array} MarketGoodResp @Router /api/ships/market_goods [post]

func PostShipTechcompatibilities

func PostShipTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Ship Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ship nicknames as input, for example [ai_bomber]" @Success 200 {array} TechCompatResp @Router /api/ships/tech_compats [post]

func PostThrustersMarketGoods

func PostThrustersMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Thrusters Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of thrusters nicknames as input, for example [dsy_thruster_bd]" @Success 200 {array} MarketGoodResp @Router /api/thrusters/market_goods [post]

func PostThrustersTechcompatibilities

func PostThrustersTechcompatibilities(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Thrusters Tech compats @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of thrusters nicknames as input" @Success 200 {array} TechCompatResp @Router /api/thrusters/tech_compats [post]

func PostTractorMarketGoods

func PostTractorMarketGoods(webapp *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Getting list of Tractor Market Goods @Tags deprecated @Accept json @Produce json @Param request body []string true "Array of ship nicknames as input, for example [dsy_license_srp_28]" @Success 200 {array} MarketGoodResp @Router /api/tractors/market_goods [post]

func RegisterApiRoutes

func RegisterApiRoutes(w *web.Web, app_data *appdata.AppData) *web.Web

func ReturnJson

func ReturnJson(w *http.ResponseWriter, data any)

Types

type Ammo added in v1.67.0

type Ammo struct {
	*configs_export.Ammo
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Api

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

type Base added in v1.67.0

type Base struct {
	*configs_export.Base
	MarketGoods []*configs_export.MarketGood `json:"market_goods"`
}

type Commodity added in v1.67.0

type Commodity struct {
	*configs_export.Commodity
	MarketGoods []*configs_export.MarketGood `json:"market_goods"`
}

type CounterMeasure added in v1.67.0

type CounterMeasure struct {
	*configs_export.CounterMeasure
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Engine added in v1.67.0

type Engine struct {
	*configs_export.Engine
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Gun added in v1.67.0

type Gun struct {
	*configs_export.Gun
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Hash added in v1.66.0

type Hash struct {
	Int32  int32  `json:"int32"  validate:"required"`
	Uint32 uint32 `json:"uint32"  validate:"required"`
	Hex    string `json:"hex"  validate:"required"`
}

type Hashes

type Hashes struct {
	HashesByNick map[string]Hash `json:"hashes_by_nick"  validate:"required"`
}

type InfocardResp

type InfocardResp struct {
	Infocard *configs_export.Infocard `json:"infocard,omitempty"`
	Error    *string                  `json:"error,omitempty"`
}

type MarketGoodResp

type MarketGoodResp struct {
	MarketGoods []*configs_export.MarketGood `json:"market_goods"`
	Nickname    string                       `json:"nickname"  validate:"required"`
	Error       *string                      `json:"error,omitempty"`
}

type Marketable

type Marketable interface {
	Nicknamable
	GetBases() map[cfg.BaseUniNick]*configs_export.MarketGood
}

type Mine added in v1.67.0

type Mine struct {
	*configs_export.Mine
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Nicknamable

type Nicknamable interface {
	GetNickname() string
}

type Scanner added in v1.67.0

type Scanner struct {
	*configs_export.Scanner
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Shield added in v1.67.0

type Shield struct {
	*configs_export.Shield
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Ship added in v1.67.0

type Ship struct {
	*configs_export.Ship
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type TechCompatResp

type TechCompatResp struct {
	TechCompat *configs_export.DiscoveryTechCompat `json:"tech_compat"`
	Nickname   string                              `json:"nickname"  validate:"required"`
	Error      *string                             `json:"error,omitempty"`
}

type TechCompatable

type TechCompatable interface {
	Nicknamable
	GetDiscoveryTechCompat() *configs_export.DiscoveryTechCompat
}

type Thruster added in v1.67.0

type Thruster struct {
	*configs_export.Thruster
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

type Tractor added in v1.67.0

type Tractor struct {
	*configs_export.Tractor
	MarketGoods []*configs_export.MarketGood        `json:"market_goods"`
	TechCompat  *configs_export.DiscoveryTechCompat `json:"tech_compat"`
}

Jump to

Keyboard shortcuts

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