router

package
v1.147.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 20 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 GetAppDataFixture added in v1.63.0

func GetAppDataFixture(ctx context.Context) *appdata.AppData

Types

type LinkTravelRoutesKind added in v1.118.0

type LinkTravelRoutesKind int8
const (
	NotLinkTravelRoutes LinkTravelRoutesKind = iota
	YesLinkTravelRoutes
)

type Router

type Router struct {
	AppData *appdata.AppData

	LinkTravelRoutesKind LinkTravelRoutesKind
	// contains filtered or unexported fields
}

func NewRouter added in v1.46.0

func NewRouter(AppData *appdata.AppData, opts ...RouterOpt) *Router
func (l *Router) Link(ctx context.Context) *builder.Builder

func (*Router) LinkAmmo

func (l *Router) LinkAmmo(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkBases

func (l *Router) LinkBases(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkCommodities

func (l *Router) LinkCommodities(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkCounterMeasures

func (l *Router) LinkCounterMeasures(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkEngines

func (l *Router) LinkEngines(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkExtraItems added in v1.88.0

func (l *Router) LinkExtraItems(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkFactions

func (l *Router) LinkFactions(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkGuns

func (l *Router) LinkGuns(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkMines

func (l *Router) LinkMines(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkScanners

func (l *Router) LinkScanners(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkShields

func (l *Router) LinkShields(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkShips

func (l *Router) LinkShips(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkThrusters

func (l *Router) LinkThrusters(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

func (*Router) LinkTractors

func (l *Router) LinkTractors(
	ctx context.Context,
	build *builder.Builder,
	data *configs_export.Exporter,
	shared *types.SharedData,
)

type RouterOpt

type RouterOpt func(l *Router)

func WithAppData added in v1.46.0

func WithAppData(AppData *appdata.AppData) RouterOpt

func WithStaticAssetsGen added in v1.72.1

func WithStaticAssetsGen() RouterOpt

Jump to

Keyboard shortcuts

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