Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoTemplate is returned when a requested template is not found ErrNoTemplate = errors.New("no such template") )
Functions ¶
func CheckDatabase ¶
CheckDatabase performs sanity checks on the database provided
Types ¶
type ConfirmHandler ¶
type ConfirmHandler struct {
// contains filtered or unexported fields
}
func NewConfirmHandler ¶
func NewConfirmHandler(ts *Templates, db *bolt.DB, prefix string) *ConfirmHandler
func (*ConfirmHandler) ServeHTTP ¶
func (ch *ConfirmHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) error
type ServerHandler ¶
type ServerHandler struct {
// contains filtered or unexported fields
}
func NewServerHandler ¶
func (*ServerHandler) ServeHTTP ¶
func (sh *ServerHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) error
type StaticPageHandler ¶
type StaticPageHandler struct {
// contains filtered or unexported fields
}
StaticPageHandler serves a single static html page
func NewStaticPageHandler ¶
func NewStaticPageHandler(ts *Templates, page string) *StaticPageHandler
func (*StaticPageHandler) ServeHTTP ¶
func (sh *StaticPageHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) error
type Templates ¶
type Templates struct {
// contains filtered or unexported fields
}
Templates handles operations on templates.
func NewTemplates ¶
NewTemplates creates a new instance of Templates from the provided folder and glob
type UploadHandler ¶
type UploadHandler struct {
// contains filtered or unexported fields
}
func NewUploadHandler ¶
func (*UploadHandler) ServeHTTP ¶
func (uh *UploadHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) error
type ViewError ¶
ViewError contains both the original error and the status code to be returned to the client
type ViewHandler ¶
type ViewHandler interface {
ServeHTTP(http.ResponseWriter, *http.Request) error
}
Click to show internal directories.
Click to hide internal directories.