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", })