{"modulePath":"github.com/BlockToCode/echov4-session","version":"v0.0.0-20230306092329-2232283a0f2e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echosession\n\n## Variables\n\n```go\nvar (\n\t// DefaultConfig is the default Recover middleware config.\n\tDefaultConfig = Config{\n\t\tSkipper:   func(_ echo.Context) bool { return false },\n\t\tStoreKey:  \"github.com/go-session/echo-session/store\",\n\t\tManageKey: \"github.com/go-session/echo-session/manage\",\n\t}\n)\n```\n\n## Functions\n\n```go\nfunc Destroy(ctx echo.Context) error\n```\nDestroy a session\n\n```go\nfunc FromContext(ctx echo.Context) session.Store\n```\nFromContext get session storage from context\n\n```go\nfunc New(opt ...session.Option) echo.MiddlewareFunc\n```\nNew create a session middleware\n\n```go\nfunc NewWithConfig(config Config, opt ...session.Option) echo.MiddlewareFunc\n```\nNewWithConfig create a session middleware\n\n```go\nfunc Refresh(ctx echo.Context) (session.Store, error)\n```\nRefresh a session and return to session storage\n\n## Types\n\n```go\ntype Config struct {\n\t// Skipper defines a function to skip middleware.\n\tSkipper Skipper\n\t// StoreKey keys stored in the context\n\tStoreKey string\n\t// ManageKey keys stored in the context\n\tManageKey string\n}\n```\nConfig defines the config for Session middleware.\n\n```go\ntype Skipper func(c echo.Context) bool\n```\nSkipper defines a function to skip middleware. Returning true skips processing the middleware.\n\n","path":"github.com/BlockToCode/echov4-session","name":"echosession","synopsis":"","isRedistributable":true}
