Documentation ¶
Index ¶
- Constants
- func CommonMiddleware(next http.Handler) http.Handler
- func DefaultErrorHandler(w http.ResponseWriter, status int)
- func ErrorLog(err error)
- func InterceptHandler(next http.Handler, errH ErrorHandler) http.Handler
- func SendMail(f Feedback) (res int, out string, err error)
- type ErrorHandler
- type Feedback
- type Host
- type Message
- type OKNO
- type PageData
- type Post
- type Posts
- type Sub
Constants ¶
View Source
const ( // HTTPMethodOverrideHeader is a commonly used // http header to override a request method. HTTPMethodOverrideHeader = "X-HTTP-Method-Override" // HTTPMethodOverrideFormKey is a commonly used // HTML form key to override a request method. HTTPMethodOverrideFormKey = "_method" )
Variables ¶
This section is empty.
Functions ¶
func CommonMiddleware ¶
CommonMiddleware --Set content-type
func DefaultErrorHandler ¶
func DefaultErrorHandler(w http.ResponseWriter, status int)
func InterceptHandler ¶
func InterceptHandler(next http.Handler, errH ErrorHandler) http.Handler
Types ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, int)
type Message ¶
type Message struct { Email string `json:"email"` Username string `json:"username"` Message string `json:"message"` }
Define our message object
type OKNO ¶
func (*OKNO) GetParallelCoin ¶
func (o *OKNO) GetParallelCoin()
type Post ¶
type Post struct { ID string `schema:"id,required"` Title string Slug string Date time.Time Excerpt string Active bool Order int }
Post contains articles and pages used by the CMS
Source Files ¶
Click to show internal directories.
Click to hide internal directories.