server

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionName  = "_tech_agenda_s"
	CurrentState = "sess"
)

Variables

This section is empty.

Functions

func GetFromSession added in v0.0.2

func GetFromSession(req *http.Request) (string, error)

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 NewHTTPServer(lc fx.Lifecycle) *echo.Echo

func StoreInSession added in v0.0.2

func StoreInSession(value string, req *http.Request, res http.ResponseWriter) error

StoreInSession stores a specified key/value pair in the session.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL