pgsession

package
v0.0.0-...-2f03d60 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashUserPwd

func HashUserPwd(email, password string) string

func SetUser

func SetUser(c *gin.Context, db *sqlx.DB, userID string) error

Types

type Store

type Store interface {
	sessions.Store
}

func NewStore

func NewStore(db *sqlx.DB, keyPairs ...[]byte) Store

type User

type User struct {
	DBUser *core.User
}

func GetUser

func GetUser(c *gin.Context) *User

Jump to

Keyboard shortcuts

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