Documentation ¶
Index ¶
- Constants
- func AdminHandler(rnd render.Render, r *http.Request)
- func CreatePostHandler(rnd render.Render, r *http.Request)
- func DeletePostHandler(rnd render.Render, params martini.Params, r *http.Request)
- func EditPostHandler(rnd render.Render, params martini.Params, r *http.Request)
- func ErrorHandler(rnd render.Render, params martini.Params, r *http.Request)
- func ExitSessionHandler(rnd render.Render, r *http.Request)
- func GetLoginHandler(rnd render.Render, r *http.Request)
- func GetRegisterHandler(rnd render.Render, r *http.Request)
- func IndexHandler(rnd render.Render, r *http.Request)
- func Init() *martini.ClassicMartini
- func MessageHandler(rnd render.Render, params martini.Params, r *http.Request)
- func PostLoginHandler(rnd render.Render, r *http.Request, w http.ResponseWriter)
- func PostRegisterHandler(rnd render.Render, r *http.Request)
- func ReadPostHandler(rnd render.Render, params martini.Params, r *http.Request)
- func WriteHandler(rnd render.Render, r *http.Request)
Constants ¶
View Source
const (
COOKIE_NAME = "sessionId" // Const for cookie name
)
Global const
Variables ¶
This section is empty.
Functions ¶
func CreatePostHandler ¶
Save post in database
func DeletePostHandler ¶
Delete post from database
func EditPostHandler ¶
Render edite template
func ErrorHandler ¶
Error handlers
func ExitSessionHandler ¶
Exit which user session
func GetLoginHandler ¶
Render login template
func GetRegisterHandler ¶
Render register template
func MessageHandler ¶
Message handler
func PostLoginHandler ¶
Create new user session
func PostRegisterHandler ¶
Save user in database
func ReadPostHandler ¶
Render read template
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.