Documentation ¶
Index ¶
- func About(c web.C, w http.ResponseWriter, r *http.Request)
- func Accession(c web.C, w http.ResponseWriter, r *http.Request)
- func Examples(c web.C, w http.ResponseWriter, r *http.Request)
- func Hello(c web.C, w http.ResponseWriter, r *http.Request)
- func Home(c web.C, w http.ResponseWriter, r *http.Request)
- func Init(debug bool, indexPath string)
- func NotFound(c web.C, w http.ResponseWriter, r *http.Request)
- func Search(c web.C, w http.ResponseWriter, r *http.Request)
- func Uploads(c web.C, w http.ResponseWriter, r *http.Request)
- type Pagination
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pagination ¶
type Pagination struct { Page int PerPage int Total int LeftEdge int LeftCurrent int RightEdge int RightCurrent int }
func NewPagination ¶
func NewPagination(page, perPage, total int) *Pagination
func (*Pagination) EndIndex ¶
func (p *Pagination) EndIndex() uint64
func (*Pagination) HasNext ¶
func (p *Pagination) HasNext() bool
func (*Pagination) HasPrev ¶
func (p *Pagination) HasPrev() bool
func (*Pagination) IterationSet ¶
func (p *Pagination) IterationSet() []int
func (*Pagination) Pages ¶
func (p *Pagination) Pages() int
func (*Pagination) StartIndex ¶
func (p *Pagination) StartIndex() uint64
StartIndex and EndIndex are 1-based
Click to show internal directories.
Click to hide internal directories.