user_session

package
v0.0.0-...-5eac7db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = Config{
		Skipper: func(c echo.Context) bool {
			for _, path := range constant.SKIP_USER_SESSION_MIDDLEWARE {
				if path == c.Path() {
					return true
				}
			}
			return false
		},
	}
)

Functions

func Middleware

func Middleware(db *dynamodb.DB) echo.MiddlewareFunc

func MiddlewareWithConfig

func MiddlewareWithConfig(config Config) echo.MiddlewareFunc

Types

type Config

type Config struct {
	Skipper middleware.Skipper
	DB      *dynamodb.DB
}

Jump to

Keyboard shortcuts

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