web

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package web handles job submissions and provides a web interface to the Monitor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AjaxResponse

type AjaxResponse struct {
	Status    bool      `json:"status"`
	Timestamp time.Time `json:"timestamp"`
	Message   string    `json:"message"`
}

AjaxResponse is the regular content sent in response to Ajax or web service requests.

type Web

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

Web provides a web interface for the Monitor and a web service for the CLI client to submit and manage Jobs.

func Create

func Create(addr string, mon *monitor.Monitor) (*Web, error)

Create creates and returns a new Web server instance.

func (*Web) IsActive

func (srv *Web) IsActive() bool

IsActive returns the value of the Web server's active flag.

func (*Web) Run

func (srv *Web) Run()

Run executes the Web server's main loop.

func (*Web) Stop

func (srv *Web) Stop()

Stop tells the Web server to stop.

Jump to

Keyboard shortcuts

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