demos

package
v0.0.0-...-71ad85e Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	Get(w, r)
})
View Source
var IdDeleteHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	IdDelete(w, r)
})
View Source
var IdGetHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	IdGet(w, r)
})
View Source
var IdPutHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	IdPut(w, r)
})
View Source
var PostHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
	Post(w, r)
})

Functions

func Get

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

func IdDelete

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

func IdGet

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

func IdPut

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

func Post

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

Types

type Data

type Data struct {
	Demos *[]*database.Demo `json:"demos"`
}

type IdData

type IdData struct {
	Demo *database.Demo `json:"demo"`
}

type StartStopRestart

type StartStopRestart struct {
	Task string `json:"task"`
}

Jump to

Keyboard shortcuts

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