Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OffsetPage ¶
type OffsetPage[T any] struct { Results []T `json:"results"` Count int64 `json:"count"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Results respjson.Field Count respjson.Field ExtraFields map[string]respjson.Field // contains filtered or unexported fields } `json:"-"` // contains filtered or unexported fields }
func (*OffsetPage[T]) GetNextPage ¶
func (r *OffsetPage[T]) GetNextPage() (res *OffsetPage[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 (OffsetPage[T]) RawJSON ¶
func (r OffsetPage[T]) RawJSON() string
Returns the unmodified JSON received from the API
func (*OffsetPage[T]) SetPageConfig ¶
func (r *OffsetPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*OffsetPage[T]) UnmarshalJSON ¶
func (r *OffsetPage[T]) UnmarshalJSON(data []byte) error
type OffsetPageAutoPager ¶
type OffsetPageAutoPager[T any] struct { // contains filtered or unexported fields }
func NewOffsetPageAutoPager ¶
func NewOffsetPageAutoPager[T any](page *OffsetPage[T], err error) *OffsetPageAutoPager[T]
func (*OffsetPageAutoPager[T]) Current ¶
func (r *OffsetPageAutoPager[T]) Current() T
func (*OffsetPageAutoPager[T]) Err ¶
func (r *OffsetPageAutoPager[T]) Err() error
func (*OffsetPageAutoPager[T]) Index ¶
func (r *OffsetPageAutoPager[T]) Index() int
func (*OffsetPageAutoPager[T]) Next ¶
func (r *OffsetPageAutoPager[T]) Next() bool
type OffsetPageIam ¶ added in v0.4.0
type OffsetPageIam[T any] struct { Result []T `json:"result"` Count int64 `json:"count"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Result respjson.Field Count respjson.Field ExtraFields map[string]respjson.Field // contains filtered or unexported fields } `json:"-"` // contains filtered or unexported fields }
func (*OffsetPageIam[T]) GetNextPage ¶ added in v0.4.0
func (r *OffsetPageIam[T]) GetNextPage() (res *OffsetPageIam[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 (OffsetPageIam[T]) RawJSON ¶ added in v0.4.0
func (r OffsetPageIam[T]) RawJSON() string
Returns the unmodified JSON received from the API
func (*OffsetPageIam[T]) SetPageConfig ¶ added in v0.4.0
func (r *OffsetPageIam[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*OffsetPageIam[T]) UnmarshalJSON ¶ added in v0.4.0
func (r *OffsetPageIam[T]) UnmarshalJSON(data []byte) error
type OffsetPageIamAutoPager ¶ added in v0.4.0
type OffsetPageIamAutoPager[T any] struct { // contains filtered or unexported fields }
func NewOffsetPageIamAutoPager ¶ added in v0.4.0
func NewOffsetPageIamAutoPager[T any](page *OffsetPageIam[T], err error) *OffsetPageIamAutoPager[T]
func (*OffsetPageIamAutoPager[T]) Current ¶ added in v0.4.0
func (r *OffsetPageIamAutoPager[T]) Current() T
func (*OffsetPageIamAutoPager[T]) Err ¶ added in v0.4.0
func (r *OffsetPageIamAutoPager[T]) Err() error
func (*OffsetPageIamAutoPager[T]) Index ¶ added in v0.4.0
func (r *OffsetPageIamAutoPager[T]) Index() int
func (*OffsetPageIamAutoPager[T]) Next ¶ added in v0.4.0
func (r *OffsetPageIamAutoPager[T]) Next() bool
Click to show internal directories.
Click to hide internal directories.