Documentation
¶
Index ¶
- Variables
- func ParsePaginationLinks(linkHeader string) (nextPage int, hasNext bool)
- type Client
- func (c *Client) Delete(ctx context.Context, path string, opts ...RequestOption) (*Response, error)
- func (c *Client) Get(ctx context.Context, path string, opts ...RequestOption) (*Response, error)
- func (c *Client) Patch(ctx context.Context, path string, body interface{}, opts ...RequestOption) (*Response, error)
- func (c *Client) Post(ctx context.Context, path string, body interface{}, opts ...RequestOption) (*Response, error)
- type PaginatedResponse
- type RequestOption
- type Response
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ParsePaginationLinks ¶
Types ¶
type PaginatedResponse ¶
type RequestOption ¶
func WithPagination ¶
func WithPagination(page, perPage int) RequestOption
func WithQueryParams ¶
func WithQueryParams(params map[string]string) RequestOption
Click to show internal directories.
Click to hide internal directories.