Documentation ¶
Index ¶
- Constants
- Variables
- func Backend() string
- func Config(f cli.ActionFunc) cli.ActionFunc
- func DataSource() string
- func Frontend() string
- func Inject(f func(*cli.Context, *inject.Graph) error) cli.ActionFunc
- func IsProduction() bool
- func Main() error
- func Name() string
- func Random(n int) string
- func Register(args ...Plugin)
- func Shell(cmd string, args ...string) error
- func Walk(f func(Plugin) error) error
- func Wrap(f func(*gin.Context) error) gin.HandlerFunc
- type HTTPError
- type Media
- type Model
- type Pagination
- type Plugin
- type Timestamp
Constants ¶
View Source
const ( // TypeMARKDOWN markdown format TypeMARKDOWN = "markdown" // TypeHTML html format TypeHTML = "html" // TypeTEXT text format TypeTEXT = "text" )
Variables ¶
Functions ¶
Types ¶
type Pagination ¶
type Pagination struct { Href string `json:"href"` Page int64 `json:"page"` Size int64 `json:"size"` Total int64 `json:"total"` Count int64 `json:"count"` Items []interface{} `json:"items"` Ids []int64 `json:"ids"` }
Pagination pagination
func NewPagination ¶
func NewPagination(r *http.Request, total int64) *Pagination
NewPagination new pagination
Source Files ¶
Click to show internal directories.
Click to hide internal directories.