devconsole

package
v0.0.0-...-545971b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(w http.ResponseWriter, data interface{}) error

JSON sends data to the writer.

Types

type DevConsole

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

DevConsole represents a web interface to receive commands from the amb tool.

func NewDevConsole

func NewDevConsole(logger ambient.AppLogger, ps ambient.PluginSystem, storage ambient.Storage, site *secureconfig.SecureSite) *DevConsole

NewDevConsole returns the dev console object to receive commands from the amb tool.

func (*DevConsole) EnableDevConsole

func (dc *DevConsole) EnableDevConsole()

EnableDevConsole turns on the dev console web listener.

Jump to

Keyboard shortcuts

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