modules

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	TabName string `json:"tab_name"` // Name of the tab in the frontend
	JSFile  string `json:"js"`       // JavaScript file that contains the WebComponent
	Tag     string `json:"tag"`      // Name of the HTML tag to import
}

func NewComponent

func NewComponent(tabName string, jsFile string, tag string) Component

type Module

type Module struct {
	Name         string      `json:"name"`
	Version      string      `json:"version"`
	Components   []Component `json:"components"`
	TickFunction func()      `json:"-"`
}

func NewModule

func NewModule(name string, version Version, components []Component, tickFunction func()) *Module

type Version

type Version [3]int

func NewVersion

func NewVersion(major int, minor int, sub int) Version

Jump to

Keyboard shortcuts

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