appdata

package
v1.69.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: AGPL-3.0 Imports: 18 Imported by: 1 module, 0 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

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(mapped *configs_mapped.MappedConfigs) *builder.Builder

func NewMapped

func NewMapped() *configs_mapped.MappedConfigs

Types

type AppData

type AppData struct {
	Mapped  *configs_mapped.MappedConfigs
	Build   *builder.Builder
	Configs *configs_export.Exporter
	Shared  *types.SharedData
	// contains filtered or unexported fields
}

func NewAppData

func NewAppData() *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) Refresh

func (a *AppData) Refresh()

func (*AppData) Unlock

func (a *AppData) Unlock()

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
}

Jump to

Keyboard shortcuts

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