Skip to content

Commit bc228ac

Browse files
committed
create IterEventsPostJson
1 parent b06ac29 commit bc228ac

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

api_client_iter_events.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)