request

package
v0.0.0-...-811544e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Field     string
	Operation string
	Value     string
}

type Pagination

type Pagination struct {
	Limit  *int    `query:"limit"`
	After  *string `query:"after"`
	Before *string `query:"before"`
	Page   *int    `query:"page"`
}

type QueryParams

type QueryParams struct {
	Pagination Pagination
	Filters    []Filter
	Includes   []string
	Sort       []SortEntry
	Search     string
}

type SortEntry

type SortEntry struct {
	Field     string
	Direction TypeSort
}

type TypeSort

type TypeSort string
const (
	TypeSortAsc  TypeSort = "ASC"
	TypeSortDesc TypeSort = "DESC"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL