Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Criteria ¶
type Criteria struct {
Properties []Order
}
Criteria represents the sorting criteria for a list of resources
func New ¶
New parses the properties, represented as comma delimited fields, into a Criteria struct The first part is the properties, the second part is the delimiter used between properties. If none is provided, a semi-colon (;) is used. Each property is assumed to be of the form: propertyName,desc;propertyName2;asc example: createdAt,desc;name,asc
Click to show internal directories.
Click to hide internal directories.