controllers

package
v0.0.0-...-98814c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2015 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(c web.C, w http.ResponseWriter, r *http.Request)

func Accession

func Accession(c web.C, w http.ResponseWriter, r *http.Request)

func Examples

func Examples(c web.C, w http.ResponseWriter, r *http.Request)

func Hello

func Hello(c web.C, w http.ResponseWriter, r *http.Request)

func Home

func Home(c web.C, w http.ResponseWriter, r *http.Request)

func Init

func Init(debug bool, indexPath string)

func NotFound

func NotFound(c web.C, w http.ResponseWriter, r *http.Request)
func Search(c web.C, w http.ResponseWriter, r *http.Request)

func Uploads

func Uploads(c web.C, w http.ResponseWriter, r *http.Request)

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

type Settings

type Settings struct {
	Debug     bool
	IndexPath string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL