web

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package web provides the web interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reply

type Reply struct {
	Timestamp time.Time         `json:"time"`
	Status    bool              `json:"status"`
	Message   string            `json:"message"`
	Payload   map[string]string `json:"payload"`
}

Reply is the format used to reply to AJAX requests.

type Server

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

Server wraps the state required for the web interface

func Create

func Create(addr string) (*Server, error)

Create creates and returns a new Server.

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe()

ListenAndServe runs the server's ListenAndServe method

Jump to

Keyboard shortcuts

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