Documentation ¶
Index ¶
- Constants
- func GetFromSession(req *http.Request) (string, error)
- func GetSessionStorage() *sessions.CookieStore
- func Logout(res http.ResponseWriter, req *http.Request) error
- func NewHTTPServer(lc fx.Lifecycle) *echo.Echo
- func StoreInSession(value string, req *http.Request, res http.ResponseWriter) error
Constants ¶
View Source
const ( SessionName = "_tech_agenda_s" CurrentState = "sess" )
Variables ¶
This section is empty.
Functions ¶
func GetFromSession ¶ added in v0.0.2
GetFromSession retrieves a previously-stored value from the session. If no value has previously been stored at the specified key, it will return an error.
func GetSessionStorage ¶ added in v0.0.2
func GetSessionStorage() *sessions.CookieStore
func Logout ¶ added in v0.0.2
func Logout(res http.ResponseWriter, req *http.Request) error
Logout invalidates a user session.
func NewHTTPServer ¶
func StoreInSession ¶ added in v0.0.2
StoreInSession stores a specified key/value pair in the session.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.