web

package
v0.0.0-...-c8b2685 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

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