ui

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package ui provides a built-in web dashboard for strego.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr   string
	Broker broker.Broker
	Store  store.Store
	Logger types.Logger
}

Config configures the UI server.

type Server

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

Server serves the web UI dashboard.

func NewServer

func NewServer(cfg Config) (*Server, error)

NewServer creates a new UI server.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the server.

func (*Server) Start

func (s *Server) Start() error

Start starts the UI server.

type StateInfo

type StateInfo struct {
	Value          string
	Label          string
	Icon           string
	IconClass      string
	CheckedClass   string
	UncheckedClass string
}

StateInfo represents a task state for the filter UI

Jump to

Keyboard shortcuts

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