web

package
v0.1.1-0...-1ecdc53 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Data is loaded when booting and updated according to user actions.

View Source
var StaticData struct {
	Fonts            []string
	Textures         []resources.Resource
	NumPluginSystems int
	Plugins          []shared.Plugin
	FontDir          string
	Messages         []shared.Message
	AppVersion       string
	Modules          []MappedModule
}

StaticData is loaded when booting and is constant everafter.

Functions

This section is empty.

Types

type MappedModule

type MappedModule struct {
	modules.Constructor
	ConfigItems []modules.ConfigItem
	PluginIndex int
	Name, ID    string
}

MappedModule is a module known to the client.

func (MappedModule) BasePath

func (mm MappedModule) BasePath() string

type PluginRegistrator

type PluginRegistrator interface {
	RegisterModule(id string, constructor modules.Constructor,
		configItems []modules.ConfigItem) error
}

PluginRegistrator is the interface given to a plugin to register modules to the web UI core. It is used from autogenerated code.

Directories

Path Synopsis
Package site implements the site all of the UI runs in.
Package site implements the site all of the UI runs in.

Jump to

Keyboard shortcuts

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