Skip to content

PostgreSQL session store implementation for sessionup

License

Notifications You must be signed in to change notification settings

swithek/sessionup-pgstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sessionup-pgstore

Build status Go Report Card GoDoc

PostgreSQL session store implementation for sessionup

Installation

go get github.com/swithek/sessionup-pgstore

Usage

Create and activate a new PgStore:

db, err := sql.Open("postgres", "...")
if err != nil {
      // handle error
}

store, err := pgstore.New(db, "sessions", time.Minute * 5)
if err != nil {
      // handle error
}

manager := sessionup.NewManager(store)

About

PostgreSQL session store implementation for sessionup

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages