mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
15 lines
311 B
Go
Executable File
15 lines
311 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/micro/services/clients/go/function"
|
|
"os"
|
|
)
|
|
|
|
// 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)
|
|
}
|