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