Documentation ¶
Overview ¶
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Index ¶
- Constants
- Variables
- type Ordering
- type Orderings
- type ParamSet
- type Params
- func (p *Params) CloneLimit(limit int) *Params
- func (p *Params) CloneOrdering(orderings ...*Ordering) *Params
- func (p *Params) Filtered(available []string, logger util.Logger) *Params
- func (p *Params) GetOrdering(col string) *Ordering
- func (p *Params) HasNextPage(count int) bool
- func (p *Params) HasPreviousPage() bool
- func (p *Params) NextPage() *Params
- func (p *Params) OrderByString() string
- func (p *Params) PreviousPage() *Params
- func (p *Params) Sanitize(key string, defaultOrderings ...*Ordering) *Params
- func (p *Params) String() string
- func (p *Params) ToQueryString(u *fasthttp.URI) string
- func (p *Params) WithLimit(n int) *Params
Constants ¶
View Source
const MaxRowsDefault = 100
Variables ¶
View Source
var AllowedColumns = map[string][]string{}
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { Key string `json:"key"` Orderings Orderings `json:"orderings,omitempty"` Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` }
func (*Params) CloneLimit ¶
func (*Params) CloneOrdering ¶
func (*Params) GetOrdering ¶
func (*Params) HasNextPage ¶
func (*Params) HasPreviousPage ¶
func (*Params) OrderByString ¶
func (*Params) PreviousPage ¶
Click to show internal directories.
Click to hide internal directories.