Files
services/examples/function/list/go/listFunctions.go

16 lines
312 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/micro/services/clients/go/function"
)
// List all the deployed functions
func ListFunctions() {
functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := functionService.List(&function.ListRequest{})
fmt.Println(rsp, err)
}