herder

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeHandler

func HomeHandler(w http.ResponseWriter, r *http.Request)

HomeHandler will serve the js emet init file

func KillHandler

func KillHandler(w http.ResponseWriter, r *http.Request)

KillHandler will kill the golem

func ListHandler

func ListHandler(w http.ResponseWriter, r *http.Request)

ListHandler shows the running golems

func ResetHandler

func ResetHandler(w http.ResponseWriter, r *http.Request)

ResetHandler will reset/reload the golem on the given webstrate

func SpawnHandler

func SpawnHandler(w http.ResponseWriter, r *http.Request)

SpawnHandler will spawn a new golem for the webstrate given by the mux.Vars

Types

type TemplateContext

type TemplateContext struct {
	ID      string
	BaseURL string
}

TemplateContext is the context which gets used when constructing the emet js init file

Jump to

Keyboard shortcuts

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