Documentation
¶
Overview ¶
Package firestoregorilla is a Firestore-backed sessions store, which can be used with gorilla/sessions.
Encoded sessions are stored in Firestore and session IDs are stored in secure cookies.
Sessions never expire and are never deleted or cleaned up.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Firestore-backed sessions store.
func (*Store) Get ¶
Get returns a cached session, if it exists. Otherwise, Get returns a new session.
The name is used as the cookie name and Firestore collection name, so different apps in the same Google Cloud project should use different names.