Generic interface that mimics a generated request by the API client Requires mainly `Treq` which will be the actual request type, and `Tres` which is the response type
| 12 | // Requires mainly `Treq` which will be the actual request type, and |
| 13 | // `Tres` which is the response type |
| 14 | type PaginatorRequest[Treq any, Tres any] interface { |
| 15 | Page(page int32) Treq |
| 16 | PageSize(size int32) Treq |
| 17 | Execute() (Tres, *http.Response, error) |
| 18 | } |
| 19 | |
| 20 | // Generic interface that mimics a generated response by the API client |
| 21 | type PaginatorResponse[Tobj any] interface { |
no outgoing calls
no test coverage detected