server

package
v0.0.0-...-19c0d85 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: AGPL-3.0 Imports: 29 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 {
	// 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) IsActive

func (srv *Server) IsActive() bool

IsActive returns the Server's active flag.

func (*Server) Run

func (srv *Server) Run()

Run executes the Server's loop, waiting for new connections and starting goroutines to handle them.

func (*Server) Stop

func (srv *Server) Stop()

Stop clears the Server's active flag.

Jump to

Keyboard shortcuts

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