Documentation ¶
Overview ¶
This sessionStore package provides a store implementing the gorilla session store interface and using google datastore as its backend
This package uses the new google.golang.org/appengine import path, not the old appengine path
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreStore ¶
type DatastoreStore struct { Codecs []securecookie.Codec Options *sessions.Options // default configuration // contains filtered or unexported fields }
Store stores sessions in the App Engine datastore.
func NewDatastoreStore ¶
func NewDatastoreStore(kind string, keyPairs ...[]byte) *DatastoreStore
NewStore returns a new DatastoreStore.
The kind argument is the kind name used to store the session data. If empty it will use "Session".
See NewCookieStore() for a description of the other parameters.
func (*DatastoreStore) Get ¶
Get returns a session for the given name after adding it to the registry.
See CookieStore.Get().
func (*DatastoreStore) New ¶
New returns a session for the given name without adding it to the registry.
See CookieStore.New().
func (*DatastoreStore) Save ¶
func (s *DatastoreStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Save adds a single session to the response.