appdata

package
v1.106.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DiscoShipNames = types.ShipNames{
	Transport: "transport",
	Frigate:   "frigate",
	Freighter: "freighter",
}
View Source
var FlsrShipNames = types.ShipNames{
	Transport: "transport",
	Frigate:   "liner",
	Freighter: "freighter",
}
View Source
var VanillaShipNames = types.ShipNames{
	Transport: "transport",
	Frigate:   "frigate",
	Freighter: "freighter",
}

Functions

func NewBuilder

func NewBuilder(is_discovery IsDiscovery) *builder.Builder

Types

type AppData

type AppData struct {
	Configs *configs_export.Exporter
	Shared  *types.SharedData
	// contains filtered or unexported fields
}

func NewAppData

func NewAppData(ctx context.Context) *AppData

func (*AppData) GetGraphPaths added in v1.67.0

func (app_data *AppData) GetGraphPaths(input_routes []GraphPathReq) []GraphPathsResp

func (*AppData) Lock

func (a *AppData) Lock()

func (*AppData) RLock added in v1.80.2

func (a *AppData) RLock()

func (*AppData) RUnlock added in v1.80.2

func (a *AppData) RUnlock()

func (*AppData) Unlock

func (a *AppData) Unlock()

type AppDataRelay added in v1.72.1

type AppDataRelay struct {
	Configs *configs_export.ExporterRelay
	Shared  *types.SharedData
	// contains filtered or unexported fields
}

func NewRelayData added in v1.72.1

func NewRelayData(app_data *AppData) *AppDataRelay

type GraphPathReq added in v1.67.0

type GraphPathReq struct {
	From string `json:"from" example:"li01_01_base" validate:"required"` // Write NPC base nickname, or PoB nickname (Name in base64 encoding) or Ore field name
	To   string `json:"to" example:"br01_01_base" validate:"required"`   // Write NPC base nickname, or PoB nickname (Name in base64 encoding) or Ore field name
}

type GraphPathTime added in v1.67.0

type GraphPathTime struct {
	Transport *cfg.SecondsI `json:"transport"` // time in seconds
	Frigate   *cfg.SecondsI `json:"frigate"`   // time in seconds
	Freighter *cfg.SecondsI `json:"freighter"` // time in seconds
}

type GraphPathsResp added in v1.67.0

type GraphPathsResp struct {
	Query GraphPathReq   `json:"route" validate:"required"` // writes requested input
	Time  *GraphPathTime `json:"time,omitempty"`
	Error *string        `json:"error,omitempty"` // writes error if requesting not existing nicknames in from/to fields
}

type IsDiscovery added in v1.72.1

type IsDiscovery bool

Jump to

Keyboard shortcuts

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