web

package
v0.0.0-...-9919733 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package web provides the web interface to the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements the web interface

func Create

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

Create creates a new Server instance.

func (*Server) Close

func (srv *Server) Close() error

Close shuts down the server.

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe()

ListenAndServe enters the HTTP server's main loop, i.e. this method must be called for the Web frontend to handle requests.

func (*Server) SendMessage

func (srv *Server) SendMessage(msg string)

SendMessage send a message to the server's message queue

Jump to

Keyboard shortcuts

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