From cf8b0fd738dfb783a41e4156cb819c264c37d21b Mon Sep 17 00:00:00 2001 From: asim Date: Tue, 26 Oct 2021 16:34:20 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/function/function.go | 9 +++++++-- clients/ts/package.json | 2 +- examples/stream/publish/go/publishAMessage.go | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/clients/go/function/function.go b/clients/go/function/function.go index 868094a..e33bde0 100755 --- a/clients/go/function/function.go +++ b/clients/go/function/function.go @@ -105,8 +105,13 @@ type DescribeRequest struct { } type DescribeResponse struct { - Status string `json:"status"` - Timeout string `json:"timeout"` + // The function requested + Function *Func `json:"function"` + // The last known status of the function + Status string `json:"status"` + // The timeout for requests to the function + Timeout string `json:"timeout"` + // The time at which the function was updated UpdateTime string `json:"updateTime"` } diff --git a/clients/ts/package.json b/clients/ts/package.json index 5f95d32..2f9e451 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -76,5 +76,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.569" + "version": "1.0.570" } \ No newline at end of file diff --git a/examples/stream/publish/go/publishAMessage.go b/examples/stream/publish/go/publishAMessage.go index eee4024..7a0d501 100755 --- a/examples/stream/publish/go/publishAMessage.go +++ b/examples/stream/publish/go/publishAMessage.go @@ -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", })