Documentation
¶
Index ¶
Constants ¶
View Source
const ( MatchAll = "matchAll" MatchAny = "matchAny" )
View Source
const ( SortOrderAsc = "Asc" SortOrderDesc = "Desc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkStatus ¶
type Column ¶
type Column struct {
Name string `json:"name"`
Type ColumnType `json:"type"`
Length int `json:"length"`
}
type ColumnType ¶
type ColumnType string
const ( Id ColumnType = "Id" // primary key and auto increase StringPrimaryKey ColumnType = "StringPrimaryKey" // primary key but not auto increase Int ColumnType = "Int" Boolean ColumnType = "Boolean" Datetime ColumnType = "Datetime" CreatedTime ColumnType = "CreatedTime" // default as current datetime UpdatedTime ColumnType = "UpdatedTime" // default/onupdate set as current datetime Text ColumnType = "Text" // slow performance compare to string String ColumnType = "String" // has length limit 255 Float ColumnType = "Float" )
type Constraint ¶
type Filter ¶
type Filter struct {
FieldName string `json:"fieldName"`
MatchType string `json:"matchType"`
Constraints []Constraint `json:"constraints"`
}
type Pagination ¶
type ParseResult ¶
type ParseResult struct {
Filters []Filter
Sorts []Sort
Pagination Pagination
}
func ParseQuery ¶
func ParseQuery(args StrArgs) ParseResult
type UploadSession ¶
type ValidPagination ¶
Click to show internal directories.
Click to hide internal directories.