Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-03 15:48:48 +00:00
parent aa66632bfa
commit 784e1a71d3
6 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ func (t *StreamService) ListMessages(request *ListMessagesRequest) (*ListMessage
return rsp, t.client.Call("stream", "ListMessages", request, rsp)
}
// SendMessage a message to the stream.
// Send a message to the stream.
func (t *StreamService) SendMessage(request *SendMessageRequest) (*SendMessageResponse, error) {
rsp := &SendMessageResponse{}
return rsp, t.client.Call("stream", "SendMessage", request, rsp)

View File

@@ -78,5 +78,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.619"
"version": "1.0.620"
}

View File

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

View File

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

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/services/clients/go/stream"
)
// SendMessage a message to the stream.
// Send a message to the stream.
func SendMessage() {
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := streamService.SendMessage(&stream.SendMessageRequest{

View File

@@ -1,6 +1,6 @@
const { StreamService } = require("m3o/stream");
// SendMessage a message to the stream.
// Send a message to the stream.
async function sendMessage() {
let streamService = new StreamService(process.env.MICRO_API_TOKEN);
let rsp = await streamService.sendMessage({