common

package
v0.0.0-...-6f3f2fa Latest Latest
Warning

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

Go to latest
Published: May 18, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAboutHandler

func GetAboutHandler(user sessionauth.User, r render.Render)

func GetFrontHandler

func GetFrontHandler(user sessionauth.User, r render.Render)

func GetSess

func GetSess() *db.Session

TODO: redo design

func InitDB

func InitDB(cfg *config.Config) *db.Session

Types

type Paginated

type Paginated struct {
	TotalItems int
	PerPage    int
	PageNumber int
	TotalPages int
	StartPoint int
	PageList   []int
	Flat       []int
	Left       []int
	Middle     []int
	Right      []int
	NextPage   int
	PrevPage   int
}

func GetPaginated

func GetPaginated(total int, pp int, pn int) *Paginated

Jump to

Keyboard shortcuts

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