server

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 12 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) *Server

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.

Jump to

Keyboard shortcuts

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