Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterField ¶
type FilterField struct {
Expr string
Kind ValueKind
Ops map[Op]string
Setter SetterFunc
}
FilterField describes how a filter field maps to a params struct field and which operations are allowed.
type OrderField ¶
OrderField maps an order key to a SQL expression.
type OrderSchema ¶
type OrderSchema struct {
DefaultPrimary string
DefaultPrimaryDesc bool
FallbackKey string
FallbackDesc bool
Fields map[string]OrderField
}
OrderSchema describes ordering defaults and whitelisted keys.
type ResourceSchema ¶
type ResourceSchema struct {
Filter map[string]FilterField
Order OrderSchema
}
ResourceSchema aggregates filtering and ordering rules for a resource.
type SetterFunc ¶
SetterFunc allows custom assignment of literal values to struct fields.
Click to show internal directories.
Click to hide internal directories.