widgets

package
v0.0.0-...-79cd42e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllWidgets []Widget

Functions

func AddRoutes

func AddRoutes(r *mux.Router)

AddRoutes adds the Widgets API to the given router.

func GetWidget

func GetWidget(w http.ResponseWriter, req *http.Request)

GetWidget retrieves a single Widget

func GetWidgets

func GetWidgets(w http.ResponseWriter, req *http.Request)

GetWidgets retrieves the collection of Widgets

func PostWidget

func PostWidget(w http.ResponseWriter, req *http.Request)

PostWidget adds a Widget to the collection

Types

type Widget

type Widget struct {
	Id   int64
	Name string
	Role string
}

Widget is a thing

Jump to

Keyboard shortcuts

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