view

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2016 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlogHandler

func BlogHandler(w http.ResponseWriter, r *http.Request, user string, action string)

func BlogSaveHandler

func BlogSaveHandler(w http.ResponseWriter, r *http.Request, title string)

func ChangeAdminstatus

func ChangeAdminstatus(w http.ResponseWriter, r *http.Request, user string)

func ChangeApprovalstatus

func ChangeApprovalstatus(w http.ResponseWriter, r *http.Request, user string)

func DeleteUser

func DeleteUser(w http.ResponseWriter, r *http.Request, user string)

func DeleteUserHandler

func DeleteUserHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func EditHandler

func EditHandler(w http.ResponseWriter, r *http.Request, title string)

func FileHandler

func FileHandler(w http.ResponseWriter, r *http.Request, path string)

func HandlerToHandleFunc

func HandlerToHandleFunc(handler http.Handler) http.HandlerFunc

func MakeAdminHandler

func MakeAdminHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func MakeApprovalHandler

func MakeApprovalHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func MakeBlogHandler

func MakeBlogHandler(fn func(http.ResponseWriter, *http.Request, string, string)) http.HandlerFunc

func MakeFileHandler

func MakeFileHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func MakeHandler

func MakeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func MakeRedirectHandler

func MakeRedirectHandler(target string) http.HandlerFunc

func MakeUserHandler

func MakeUserHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc

func MakeVersionHandler

func MakeVersionHandler(fn func(http.ResponseWriter, *http.Request, string, *string)) http.HandlerFunc

func SaveHandler

func SaveHandler(w http.ResponseWriter, r *http.Request, title string)

func UserHandler

func UserHandler(w http.ResponseWriter, r *http.Request, user string)

func VersionHandler

func VersionHandler(w http.ResponseWriter, r *http.Request, title string, version *string)

func ViewHandler

func ViewHandler(w http.ResponseWriter, r *http.Request, title string)

Types

type Blog

type Blog map[string]*Page

type Page

type Page struct {
	Title       string
	Body        string
	DisplayBody template.HTML
	Path        template.HTML
	Information string
}

type User

type User struct {
	Username       string
	Password       string
	Approvalstatus string
	Adminstatus    string
}

type Version

type Version map[string]*Page

Jump to

Keyboard shortcuts

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