webui

package
v0.0.0-...-945d024 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiStatusResponse

type ApiStatusResponse struct {
	Inputs  map[string]string `json:"inputs"`
	Outputs map[string]bool   `json:"outputs"`
}

type ConfigChangeRequest

type ConfigChangeRequest struct {
	Controller string `json:"controller"`
	Type       string `json:"type"`
	Key        string `json:"key"`
	Value      string `json:"value"`
}

type ConfigChangeResponse

type ConfigChangeResponse struct {
	Error     string      `json:"error"`
	OrigValue interface{} `json:"origValue"`
}

type ConfigData

type ConfigData struct {
	ConfigProperties map[string]controller.ConfigProperties `json:"schema"`
	ConfigValues     map[string]controller.Config           `json:"values"`
}

type LoginRequest

type LoginRequest struct {
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Error string `json:"error"`
	Token string `json:"token"`
}

type WebUI

type WebUI struct {
	// contains filtered or unexported fields
}

func New

func New(listenOn, password string, configStore *configstore.ConfigStore, inputs []io.Input, outputs []io.Output) WebUI

func (*WebUI) Run

func (w *WebUI) Run(stopChan chan struct{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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