console

package
v0.0.0-...-ff34515 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConsole

func InitConsole()

InitConsole starts the dashboard's webserver in a go routine.

Types

type Template

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

Template is a wrapper around all of the view templates being used in the console.

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render is called to fulfill the initial page load for the dashboard.

type WebsocketMessage

type WebsocketMessage struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

WebsocketMessage is representative of a single message being sent from the backend to the frontend, or the other direction.

Jump to

Keyboard shortcuts

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