{"repo":"xyproto/pstore","free":true,"listed":false,"github":"https://github.com/xyproto/pstore","clone":"git clone https://github.com/xyproto/pstore.git","description":":wrench: Middleware for keeping track of users, login states and permissions, using the HSTORE feature in PostgreSQL","language":"Go","stars":39,"topics":["middleware","permissions","hstore","postgresql","auth"],"license":"BSD-3-Clause","category":"databases-storage","readme_excerpt":"PostgreSQL Store Middleware for keeping track of users, login states and permissions. Uses PostgreSQL for the database. For using Redis as a backend instead, look into permissions2. There is also a BoltDB and MariaDB/MySQL backend. They are interchangeable. Uses simplehstore. Online API Documentation ------------------------ godoc.org Connecting ---------- For connecting to a PostgreSQL host that is running locally, the New function can be used. For connecting to a remote server, the NewWithDSN function can be used. Features and limitations ------------------------ Uses secure cookies and stores user information in a PostgreSQL database. Suitable for connecting to a local or remote PostgreSQL server, registering/confirming users and managing public/user/admin pages. Supports registration and confirmation via generated confirmation codes. Tries to keep things simple. Only supports \"public\", \"user\" and \"admin\" permissions out of the box, but offers functionality for implementing more fine grained permissions, if so desired. Supports Negroni, Martini, Gin, Goji and plain net/http . Should also work with other frameworks, since the standard http.HandlerFunc is used everywhere. The default permissions can be cleared with the Clear() function. Example for Negroni -------------------- go package main import ( \"fmt\" \"log\" \"net/http\" \"strings\" \"github.com/codegangsta/negroni\" \"github.com/xyproto/pstore\" ) func main() { n := negroni.Classic() mux := http.NewServeMux() // New pstore mid","default_branch":null,"files":null,"tree":[],"storefront":"/r/xyproto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xyproto/pstore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}