Documentation ¶
Index ¶
- Constants
- Variables
- func AdminFits(rw http.ResponseWriter, req *http.Request)
- func AdminManageAccounts(rw http.ResponseWriter, req *http.Request)
- func AdminReload(rw http.ResponseWriter, req *http.Request)
- func DeleteFit(rw http.ResponseWriter, req *http.Request)
- func Fitting(rw http.ResponseWriter, req *http.Request)
- func FourOhFour(rw http.ResponseWriter, req *http.Request)
- func GetSession(res http.ResponseWriter, r *http.Request) (bool, db.User, *sessions.Session)
- func Index(rw http.ResponseWriter, req *http.Request)
- func Iter(i int) []int
- func LoadTemplates()
- func Login(rw http.ResponseWriter, req *http.Request)
- func Logout(rw http.ResponseWriter, req *http.Request)
- func NewFit(rw http.ResponseWriter, req *http.Request)
- func RawFit(rw http.ResponseWriter, req *http.Request)
- func RenameFit(rw http.ResponseWriter, req *http.Request)
- func SaveFit(rw http.ResponseWriter, req *http.Request)
- func TypeName(rw http.ResponseWriter, req *http.Request)
- func WriteError(err error, rw http.ResponseWriter, req *http.Request)
- func YourFits(rw http.ResponseWriter, req *http.Request)
- type AdminManage
- type Fit
- type Global
Constants ¶
View Source
const (
AccountsPerPage = 10
)
Variables ¶
View Source
var Sessions = sessions.NewCookieStore([]byte(config.Config.SessionSecret))
View Source
var Templates map[string]*template.Template
Functions ¶
func AdminManageAccounts ¶
func AdminManageAccounts(rw http.ResponseWriter, req *http.Request)
func AdminReload ¶
func AdminReload(rw http.ResponseWriter, req *http.Request)
func FourOhFour ¶
func FourOhFour(rw http.ResponseWriter, req *http.Request)
func GetSession ¶
func LoadTemplates ¶
func LoadTemplates()
func WriteError ¶
func WriteError(err error, rw http.ResponseWriter, req *http.Request)
Types ¶
type AdminManage ¶
func (AdminManage) Next ¶
func (a AdminManage) Next() int
func (AdminManage) Previus ¶
func (a AdminManage) Previus() int
Click to show internal directories.
Click to hide internal directories.