Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorURLPage ¶
type CursorURLPage[T any] struct { Next string `json:"next"` Items []T `json:"items"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Next respjson.Field Items respjson.Field ExtraFields map[string]respjson.Field // contains filtered or unexported fields } `json:"-"` // contains filtered or unexported fields }
func (*CursorURLPage[T]) GetNextPage ¶
func (r *CursorURLPage[T]) GetNextPage() (res *CursorURLPage[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 (CursorURLPage[T]) RawJSON ¶
func (r CursorURLPage[T]) RawJSON() string
Returns the unmodified JSON received from the API
func (*CursorURLPage[T]) SetPageConfig ¶
func (r *CursorURLPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*CursorURLPage[T]) UnmarshalJSON ¶
func (r *CursorURLPage[T]) UnmarshalJSON(data []byte) error
type CursorURLPageAutoPager ¶
type CursorURLPageAutoPager[T any] struct { // contains filtered or unexported fields }
func NewCursorURLPageAutoPager ¶
func NewCursorURLPageAutoPager[T any](page *CursorURLPage[T], err error) *CursorURLPageAutoPager[T]
func (*CursorURLPageAutoPager[T]) Current ¶
func (r *CursorURLPageAutoPager[T]) Current() T
func (*CursorURLPageAutoPager[T]) Err ¶
func (r *CursorURLPageAutoPager[T]) Err() error
func (*CursorURLPageAutoPager[T]) Index ¶
func (r *CursorURLPageAutoPager[T]) Index() int
func (*CursorURLPageAutoPager[T]) Next ¶
func (r *CursorURLPageAutoPager[T]) Next() bool
Click to show internal directories.
Click to hide internal directories.