Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
asim
2021-10-26 06:48:55 +00:00
parent 1635d181bc
commit abb8275370
6 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ func (t *FunctionService) Deploy(request *DeployRequest) (*DeployResponse, error
return rsp, t.client.Call("function", "Deploy", request, rsp)
}
//
// Get the info for a deployed function
func (t *FunctionService) Describe(request *DescribeRequest) (*DescribeResponse, error) {
rsp := &DescribeResponse{}
return rsp, t.client.Call("function", "Describe", request, rsp)

View File

@@ -76,5 +76,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.563"
"version": "1.0.564"
}

View File

@@ -12,8 +12,8 @@ func UpdateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Update(&db.UpdateRequest{
Record: map[string]interface{}{
"id": "1",
"age": 43,
"id": "1",
},
Table: "users",
})

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/services/clients/go/function"
)
//
// Get the info for a deployed function
func DescribeFunctionStatus() {
functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := functionService.Describe(&function.DescribeRequest{

View File

@@ -1,6 +1,6 @@
const { FunctionService } = require("m3o/function");
//
// Get the info for a deployed function
async function describeFunctionStatus() {
let functionService = new FunctionService(process.env.MICRO_API_TOKEN);
let rsp = await functionService.describe({

View File

@@ -12,9 +12,9 @@ func PublishAmessage() {
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := streamService.Publish(&stream.PublishRequest{
Message: map[string]interface{}{
"user": "john",
"id": "1",
"type": "signup",
"user": "john",
},
Topic: "events",
})