darkhttp

package
v1.153.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 24 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ApiRoute = "/api"
View Source
const ApplicationJson = "application/json"

Variables

View Source
var GetPobsUrl = core_types.Url("" + ApiRoute + "/pobs")
View Source
var (
	Log = logus.Log.WithScope("darkhttp")
)

Functions

func EntityToYamlStrings added in v1.99.5

func EntityToYamlStrings(entity any) []string

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} darkhttp.Ammo @Router /api/ammos [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Base @Router /api/npc_bases [post] @Param request body pb.GetBasesInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames (in those case by base nicknames) @Description filter_market_good_category: filters market goods to specific category. valid categories are written in market goods in same named attribute. for example 'commodity'

func GetBasesInput

func GetBasesInput(w http.ResponseWriter, r *http.Request) (*pb.GetBasesInput, error)

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} darkhttp.CounterMeasure @Router /api/counter_measures [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Commodity @Router /api/commodities [post] @Param request body pb.GetCommoditiesInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Engine @Router /api/engines [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

func GetEquipmentInput

func GetEquipmentInput(w http.ResponseWriter, r *http.Request) (*pb.GetEquipmentInput, error)

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 [post] @Param request body pb.GetFactionsInput true "input variables" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found

func GetGraphPaths added in v1.99.0

func GetGraphPaths(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 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} darkhttp.Gun @Router /api/guns [post] @Param request body pb.GetGunsInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames @Description include_damage_bonuses: insert 'true' if u wish added damage bonuses against specific shield types

func GetGunsInput

func GetGunsInput(w http.ResponseWriter, r *http.Request) (*pb.GetGunsInput, error)

func GetHashes

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

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

func GetInfo added in v1.99.5

func GetInfo(t *web.Web, api *Api) *registry.Endpoint

ShowAccount godoc @Summary Info Query @Tags misc @Accept json @Produce json @Param request body GetInfoArgs true "Request body" @Success 200 {object} GetInfoReply @Router /api/info_query [post]

func GetInfoF added in v1.99.5

func GetInfoF(t *Api, args GetInfoArgs, reply *GetInfoReply) error

func GetInfocards

func GetInfocards(webapp *web.Web, 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 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} darkhttp.Mine @Router /api/mines [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Gun @Router /api/missiles [post] @Param request body pb.GetGunsInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames @Description include_damage_bonuses: insert 'true' if u wish added damage bonuses against specific shield types

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} darkhttp.Base @Router /api/mining_operations [post] @Param request body pb.GetBasesInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames (in those case by base nicknames) @Description filter_market_good_category: filters market goods to specific category. valid categories are written in market goods in same named attribute. for example 'commodity'

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} darkhttp.Base @Router /api/pobs/bases [post] @Param request body pb.GetBasesInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames (in those case by base nicknames) @Description filter_market_good_category: filters market goods to specific category. valid categories are written in market goods in same named attribute. for example 'commodity'

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 [post]

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 [post]

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} darkhttp.Scanner @Router /api/scanners [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Shield @Router /api/shields [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Ship @Router /api/ships [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

func GetSystems added in v1.97.0

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

ShowAccount godoc @Summary Getting list of Systems @Tags others @Accept json @Produce json @Success 200 {array} export_map.System @Router /api/systems [post]

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} darkhttp.Thruster @Router /api/thrusters [post] @Param request body pb.GetEquipmentInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description include_tech_compat: insert 'true' if wish to include tech compatibility data. can be adding a lot of extra weight @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames

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} darkhttp.Tractor @Router /api/tractors [post] @Param request body pb.GetTractorsInput true "input variables" @Description include_market_goods: "insert 'true' if wish to include market goods under 'market goods' key or not. Such data can add a lot of extra weight" @Description filter_to_useful: Apply filtering same as darkstat does by default for its tab. Usually means showing only items that can be bought/crafted/or found @Description filter_nicknames: filters by item nicknames @Description include_rephacks: "insert 'true' if wish to include ID rephacks usable for Freelancer Discovery

func GunHandler

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

func IsInfoFound added in v1.99.5

func IsInfoFound(t *Api, args GetInfoArgs, name string, nickname string) (bool, bool)

func JsonResponseHeader

func JsonResponseHeader(w *http.ResponseWriter)

func PostAmmoMarketGoods

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

func PostAmmoTechcompatibilities

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

func PostBaseMarketGoods

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

func PostCMsMarketGoods

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

func PostCMsTechcompatibilities

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

func PostCommodityMarketGoods

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

func PostEnginesMarketGoods

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

func PostEnginesTechcompatibilities

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

func PostGunsMarketGoods

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

func PostGunsTechcompatibilities

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

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

func PostMinesTechcompatibilities

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

func PostMissilesMarketGoods

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

func PostMissilesTechcompatibilities

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

func PostScannersMarketGoods

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

func PostScannersTechcompatibilities

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

func PostShieldsMarketGoods

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

func PostShieldsTechcompatibilities

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

func PostShipMarketGoods

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

func PostShipTechcompatibilities

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

func PostThrustersMarketGoods

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

func PostThrustersTechcompatibilities

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

func PostTractorMarketGoods

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

func ReadJsonInput

func ReadJsonInput[T any](w http.ResponseWriter, r *http.Request, data *T) error

Types

type Ammo

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
}

func RegisterApiRoutes

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

func (*Api) GetAppData added in v1.86.5

func (a *Api) GetAppData() *appdata.AppData

func (*Api) SetAppData added in v1.118.2

func (a *Api) SetAppData(app_data *appdata.AppData, mu *sync.RWMutex)

type Base

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

type Commodity

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

type CounterMeasure

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

type EmptyInput added in v1.99.0

type EmptyInput struct{}

type Engine

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

type GetInfoArgs added in v1.99.5

type GetInfoArgs struct {
	Query string
}

type GetInfoReply added in v1.99.5

type GetInfoReply struct {
	Content []string
	Found   []InfoFound
}

type Gun

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

type HttpClient added in v1.99.0

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

func NewClient added in v1.99.0

func NewClient(
	api_url string,
) *HttpClient

func (*HttpClient) GetAmmos added in v1.99.0

func (c *HttpClient) GetAmmos(input pb.GetCommoditiesInput) ([]*Ammo, error)

func (*HttpClient) GetBases added in v1.99.0

func (c *HttpClient) GetBases(input pb.GetBasesInput) ([]*Base, error)

func (*HttpClient) GetCMs added in v1.99.0

func (c *HttpClient) GetCMs(input pb.GetEquipmentInput) ([]*CounterMeasure, error)

func (*HttpClient) GetCommodities added in v1.99.0

func (c *HttpClient) GetCommodities(input pb.GetCommoditiesInput) ([]*Commodity, error)

func (*HttpClient) GetEngines added in v1.99.0

func (c *HttpClient) GetEngines(input pb.GetEquipmentInput) ([]*Engine, error)

func (*HttpClient) GetFactions added in v1.99.0

func (c *HttpClient) GetFactions(input pb.GetEquipmentInput) ([]configs_export.Faction, error)

func (*HttpClient) GetGraphPaths added in v1.99.0

func (c *HttpClient) GetGraphPaths(requests []appdata.GraphPathReq) ([]appdata.GraphPathsResp, error)

func (*HttpClient) GetGuns added in v1.99.0

func (c *HttpClient) GetGuns(input pb.GetGunsInput) ([]*Gun, error)

func (*HttpClient) GetHashes added in v1.99.0

func (c *HttpClient) GetHashes() (pb.Hashes, error)

func (*HttpClient) GetInfo added in v1.99.5

func (c *HttpClient) GetInfo(args GetInfoArgs) (*GetInfoReply, error)

func (*HttpClient) GetInfocards added in v1.99.0

func (c *HttpClient) GetInfocards(nicknames []string) ([]InfocardResp, error)

func (*HttpClient) GetMines added in v1.99.0

func (c *HttpClient) GetMines(input pb.GetEquipmentInput) ([]*Mine, error)

func (*HttpClient) GetMissiles added in v1.99.0

func (c *HttpClient) GetMissiles(input pb.GetGunsInput) ([]*Gun, error)

func (*HttpClient) GetOreFields added in v1.99.0

func (c *HttpClient) GetOreFields(input pb.GetBasesInput) ([]*Base, error)

func (*HttpClient) GetPoBBases added in v1.99.0

func (c *HttpClient) GetPoBBases(input pb.GetBasesInput) ([]*Base, error)

func (*HttpClient) GetPoBGoods added in v1.99.0

func (c *HttpClient) GetPoBGoods() ([]*configs_export.PoBGood, error)

func (*HttpClient) GetPobs added in v1.99.0

func (c *HttpClient) GetPobs() ([]*configs_export.PoB, error)

func (*HttpClient) GetScanners added in v1.99.0

func (c *HttpClient) GetScanners(input pb.GetEquipmentInput) ([]*Scanner, error)

func (*HttpClient) GetShields added in v1.99.0

func (c *HttpClient) GetShields(input pb.GetEquipmentInput) ([]*Shield, error)

func (*HttpClient) GetShips added in v1.99.0

func (c *HttpClient) GetShips(input pb.GetEquipmentInput) ([]*Ship, error)

func (*HttpClient) GetSystems added in v1.99.0

func (c *HttpClient) GetSystems() ([]export_map.System, error)

func (*HttpClient) GetThrusters added in v1.99.0

func (c *HttpClient) GetThrusters(input pb.GetEquipmentInput) ([]*Thruster, error)

func (*HttpClient) GetTractors added in v1.99.0

func (c *HttpClient) GetTractors(input pb.GetTractorsInput) ([]*Tractor, error)

type InfoFound added in v1.99.5

type InfoFound struct {
	Nickname   string
	Name       string
	Entity     string
	FirstLine  string
	Obtainable bool
}

func NewInfoFound added in v1.99.5

func NewInfoFound(t *Api, Nickname string, Name string, Entity string, Obtainable bool) InfoFound

type InfocardResp

type InfocardResp struct {
	Infocard *infocarder.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

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

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

type Shield

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

type Ship

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

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

type Tractor

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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