Documentation
¶
Index ¶
- func ExtractItems(raw json.RawMessage, key string) []json.RawMessage
- func FromLimit(pageSize int) func(*PageState, map[string]string)
- func IndexRange(pageSize int) func(*PageState, map[string]string)
- func PageOffsetLimit(pageSize int) func(*PageState, map[string]string)
- func PagePerPage(pageSize int) func(*PageState, map[string]string)
- func Paginate(ctx context.Context, cfg PaginationConfig) ([]json.RawMessage, error)
- func PaginateCRM(ctx context.Context, client *zohttp.Client, url string, ...) ([]json.RawMessage, error)
- func PaginateProjects(ctx context.Context, client *zohttp.Client, url string, itemsKey string, ...) ([]json.RawMessage, error)
- func PaginateWorkDrive(ctx context.Context, client *zohttp.Client, url string, ...) ([]json.RawMessage, error)
- func SIndexLimit(pageSize int) func(*PageState, map[string]string)
- func SetPageCRM(state *PageState, params map[string]string)
- func SignPageContext(pageSize int) func(*PageState, map[string]string)
- type PageState
- func HasMoreBooks(raw json.RawMessage, _ int, _ int) (bool, *PageState)
- func HasMoreByCount(_ json.RawMessage, fetched int, pageSize int) (bool, *PageState)
- func HasMoreCRM(raw json.RawMessage, _ int, _ int) (bool, *PageState)
- func HasMoreProjects(raw json.RawMessage, _ int, _ int) (bool, *PageState)
- func HasMoreSign(raw json.RawMessage, _ int, _ int) (bool, *PageState)
- func HasMoreWorkDrive(raw json.RawMessage, _ int, _ int) (bool, *PageState)
- type PaginationConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractItems ¶ added in v0.3.0
func ExtractItems(raw json.RawMessage, key string) []json.RawMessage
func PageOffsetLimit ¶ added in v0.3.0
func PagePerPage ¶ added in v0.3.0
func Paginate ¶ added in v0.3.0
func Paginate(ctx context.Context, cfg PaginationConfig) ([]json.RawMessage, error)
func PaginateCRM ¶
func PaginateProjects ¶
func PaginateWorkDrive ¶
func SIndexLimit ¶ added in v0.3.0
func SetPageCRM ¶ added in v0.3.0
Types ¶
type PageState ¶ added in v0.3.0
func HasMoreBooks ¶ added in v0.3.0
func HasMoreByCount ¶ added in v0.3.0
func HasMoreCRM ¶ added in v0.3.0
func HasMoreProjects ¶ added in v0.3.0
func HasMoreSign ¶ added in v0.3.0
func HasMoreWorkDrive ¶ added in v0.3.0
type PaginationConfig ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.