Documentation ¶
Index ¶
- Constants
- func AuthenticationMiddleware(conf *config.Config) echo.MiddlewareFunc
- func Delete(c echo.Context) error
- func Get(c echo.Context) *sessions.Session
- func GetAccount(c echo.Context) *model.Account
- func GetValue(c echo.Context, key string) string
- func Init(e *echo.Echo, conf *config.Config)
- func Save(c echo.Context) error
- func SetAccount(c echo.Context, account *model.Account) error
- func SetValue(c echo.Context, key string, value interface{}) error
Constants ¶
View Source
const (
// Account is the key of account data in the session.
Account = "Account"
)
Variables ¶
This section is empty.
Functions ¶
func AuthenticationMiddleware ¶
AuthenticationMiddleware is the middleware of session authentication for echo.
func GetAccount ¶
GetAccount returns account object of session.
func SetAccount ¶
SetAccount sets account data in session.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.