Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-02 16:30:37 +00:00
parent 636f5f1758
commit acf15882f4
5 changed files with 71 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"os"
"github.com/micro/services/clients/go/event"
)
// Read stored events
func ReadEventsOnAtopic() {
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := eventService.Read(&event.ReadRequest{
Topic: "user",
})
fmt.Println(rsp, err)
}