server

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 5 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 provides functionality to serve Starlark over HTTP. It has functionality to watch a file and hot reload the browser on changes.

func NewServer

func NewServer(host string, port int, watch bool, filename string, maxDuration int) (*Server, error)

NewServer creates a new server initialized with the applet.

func (*Server) Run

func (s *Server) Run() error

Run serves the http server and runs forever in a blocking fashion.

Directories

Path Synopsis
Package browser provides the ability to send WebP images to a browser over websockets.
Package browser provides the ability to send WebP images to a browser over websockets.
Package loader provides primitives to load an applet both when the underlying file changes and on demand when an update is requested.
Package loader provides primitives to load an applet both when the underlying file changes and on demand when an update is requested.
Package watcher provides a simple mechanism to watch a file for changes.
Package watcher provides a simple mechanism to watch a file for changes.

Jump to

Keyboard shortcuts

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