package
Version:
v1.7.3
Opens a new window with list of versions in this module.
Published: Feb 14, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Format collection as response-answer (Collection)
type Collection struct {
Total int `json:"total"`
Offset int `json:"offset"`
Items Items `json:"items"`
}
Collection response answer
type Items = []interface{}
Items is formatted response of models
ModelsFetcher closure to fetch and format Items
Options to Format list-response
type Paginate struct {
Offset int `query:"offset" form:"offset" json:"offset"`
Limit int `query:"limit" form:"limit" json:"limit"`
}
Paginate is part of filter structure
Pager returns Paginate-struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.