mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -76,5 +76,5 @@
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.0.563"
|
||||
"version": "1.0.564"
|
||||
}
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user