example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Golang Function Example

Deploy a Go function using the Function API

Usage

curl "https://api.m3o.com/v1/function/Deploy" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $M3O_API_TOKEN" \
-d '{
  "entrypoint": "Helloworld",
  "name": "example",
  "repo": "github.com/m3o/m3o",
  "subfolder": "examples/go-function",
  "runtime": "go116"
}'

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helloworld

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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