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) return rsp, t.client.Call("function", "Deploy", request, rsp)
} }
// // Get the info for a deployed function
func (t *FunctionService) Describe(request *DescribeRequest) (*DescribeResponse, error) { func (t *FunctionService) Describe(request *DescribeRequest) (*DescribeResponse, error) {
rsp := &DescribeResponse{} rsp := &DescribeResponse{}
return rsp, t.client.Call("function", "Describe", request, rsp) return rsp, t.client.Call("function", "Describe", request, rsp)

View File

@@ -76,5 +76,5 @@
"prepare": "npm run build" "prepare": "npm run build"
}, },
"types": "index.d.ts", "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")) dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Update(&db.UpdateRequest{ rsp, err := dbService.Update(&db.UpdateRequest{
Record: map[string]interface{}{ Record: map[string]interface{}{
"id": "1",
"age": 43, "age": 43,
"id": "1",
}, },
Table: "users", Table: "users",
}) })

View File

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

View File

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

View File

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