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