cloudfuncs

package module
v0.0.0-...-1802c22 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MachineHttp

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

MachineHttp is an HTTP Cloud Function that CRUDs a Machine document in the firestore

Types

type Machine

type Machine struct {
	Name  string `json:"name,omitempty" firestore:"name,omitempty"`
	Power int    `json:"power,omitempty" firestore:"power,omitempty"`
}

Jump to

Keyboard shortcuts

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