ui

package
v0.1.0-alpha-26 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCors

func AddCors(w http.ResponseWriter)

Helper for managing CORS responses

Types

type WebServer

type WebServer struct {
	// contains filtered or unexported fields
}

func NewWebServer

func NewWebServer(h *holo.Holochain, port string) *WebServer

func (*WebServer) Start

func (ws *WebServer) Start()

Start starts up a web server and returns a channel which will shutdown

func (*WebServer) Stop

func (ws *WebServer) Stop()

Stop sends a message through the stop channel to unblock

func (*WebServer) Wait

func (ws *WebServer) Wait()

Wait blocks on the stop channel and when it finishes shuts down the server

Jump to

Keyboard shortcuts

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