Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasetsIterrows ¶
type DatasetsIterrows[T any] struct { Data []T `json:"data"` NextIndex int64 `json:"next_index"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Data respjson.Field NextIndex respjson.Field ExtraFields map[string]respjson.Field // contains filtered or unexported fields } `json:"-"` // contains filtered or unexported fields }
func (*DatasetsIterrows[T]) GetNextPage ¶
func (r *DatasetsIterrows[T]) GetNextPage() (res *DatasetsIterrows[T], err error)
GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error
func (DatasetsIterrows[T]) RawJSON ¶
func (r DatasetsIterrows[T]) RawJSON() string
Returns the unmodified JSON received from the API
func (*DatasetsIterrows[T]) SetPageConfig ¶
func (r *DatasetsIterrows[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*DatasetsIterrows[T]) UnmarshalJSON ¶
func (r *DatasetsIterrows[T]) UnmarshalJSON(data []byte) error
type DatasetsIterrowsAutoPager ¶
type DatasetsIterrowsAutoPager[T any] struct { // contains filtered or unexported fields }
func NewDatasetsIterrowsAutoPager ¶
func NewDatasetsIterrowsAutoPager[T any](page *DatasetsIterrows[T], err error) *DatasetsIterrowsAutoPager[T]
func (*DatasetsIterrowsAutoPager[T]) Current ¶
func (r *DatasetsIterrowsAutoPager[T]) Current() T
func (*DatasetsIterrowsAutoPager[T]) Err ¶
func (r *DatasetsIterrowsAutoPager[T]) Err() error
func (*DatasetsIterrowsAutoPager[T]) Index ¶
func (r *DatasetsIterrowsAutoPager[T]) Index() int
func (*DatasetsIterrowsAutoPager[T]) Next ¶
func (r *DatasetsIterrowsAutoPager[T]) Next() bool
type OpenAICursorPage ¶
type OpenAICursorPage[T any] struct { Data []T `json:"data"` HasMore bool `json:"has_more"` LastID string `json:"last_id"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Data respjson.Field HasMore respjson.Field LastID respjson.Field ExtraFields map[string]respjson.Field // contains filtered or unexported fields } `json:"-"` // contains filtered or unexported fields }
func (*OpenAICursorPage[T]) GetNextPage ¶
func (r *OpenAICursorPage[T]) GetNextPage() (res *OpenAICursorPage[T], err error)
GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error
func (OpenAICursorPage[T]) RawJSON ¶
func (r OpenAICursorPage[T]) RawJSON() string
Returns the unmodified JSON received from the API
func (*OpenAICursorPage[T]) SetPageConfig ¶
func (r *OpenAICursorPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*OpenAICursorPage[T]) UnmarshalJSON ¶
func (r *OpenAICursorPage[T]) UnmarshalJSON(data []byte) error
type OpenAICursorPageAutoPager ¶
type OpenAICursorPageAutoPager[T any] struct { // contains filtered or unexported fields }
func NewOpenAICursorPageAutoPager ¶
func NewOpenAICursorPageAutoPager[T any](page *OpenAICursorPage[T], err error) *OpenAICursorPageAutoPager[T]
func (*OpenAICursorPageAutoPager[T]) Current ¶
func (r *OpenAICursorPageAutoPager[T]) Current() T
func (*OpenAICursorPageAutoPager[T]) Err ¶
func (r *OpenAICursorPageAutoPager[T]) Err() error
func (*OpenAICursorPageAutoPager[T]) Index ¶
func (r *OpenAICursorPageAutoPager[T]) Index() int
func (*OpenAICursorPageAutoPager[T]) Next ¶
func (r *OpenAICursorPageAutoPager[T]) Next() bool
Click to show internal directories.
Click to hide internal directories.