We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06ac29 commit bc228acCopy full SHA for bc228ac
api_client_iter_events.go
@@ -0,0 +1,36 @@
1
+//go:build go1.23
2
+
3
+package flareio
4
5
+import (
6
+ "bytes"
7
+ "encoding/json"
8
+ "fmt"
9
+ "io"
10
+ "iter"
11
+ "net/http"
12
+ "net/url"
13
+)
14
15
+// IterEvent contains results for a given page.
16
+type IterEventsResult struct {
17
+ // Response associated with the fetched page.
18
+ //
19
+ // The response's body must be closed.
20
+ Response *http.Response
21
22
+ // Next is the token to be used to fetch the next page.
23
+ Next string
24
+}
25
26
27
+func (client *ApiClient) IterEventsPostJson(
28
+ pagesPath string,
29
+ eventsPath string,
30
+ parms *url.Values,
31
+ body map[string]interface{},
32
+) iter.Seq2[*IterEventsResult, error]
33
+{
34
+ return func(yield func(*IterEventsResult, error) bool) {
35
+ }
36
0 commit comments