view

package
v0.0.0-...-6ddf1ec Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.680

templ: version: v0.2.680

templ: version: v0.2.680

templ: version: v0.2.680

templ: version: v0.2.680

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Form

func Form(app string, command string, fields []Field, save bool) templ.Component

func List

func List(app string, cmds []CommandEntry) templ.Component

func ListLog

func ListLog(app string, logs []LogEntry) templ.Component

func Log

func Log(app string, id, logs string) templ.Component

func Save

func Save() templ.Component

func SaveError

func SaveError() templ.Component

Types

type CommandEntry

type CommandEntry struct {
	Name        string
	Description string
}

type Field

type Field struct {
	Name        string
	Type        FieldType
	Default     string
	Description string
	Array       bool
}

type FieldType

type FieldType int
const (
	Text FieldType = iota
	Number
	Boolean
)

type LogEntry

type LogEntry struct {
	ID       string
	Command  string
	Start    time.Time
	End      time.Time
	Error    bool
	Canceled bool
}

Jump to

Keyboard shortcuts

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