Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSessionCookie ¶
func DeleteSessionCookie(c echo.Context)
func Middleware ¶
func Middleware(db *pg.DB) echo.MiddlewareFunc
Middleware returns a Session middleware.
func SetSessionCookie ¶
func SetSessionCookie(c echo.Context, sid string)
Types ¶
type Details ¶
func FromContext ¶
FromContext returns an Details from the given context.Context, if any.
func FromEchoContext ¶
FromEchoContext returns an Details from the given echo.Context, if any. It fetches the Details on the underlying context.Context.
func (*Details) WithEchoContext ¶
func (d *Details) WithEchoContext(c echo.Context) echo.Context
Click to show internal directories.
Click to hide internal directories.