Documentation
¶
Overview ¶
Package cache provides a remote cache based implementation of session store and loader. See pomerium's cache service for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Cache client.Cacher Encoder encoding.MarshalUnmarshaler QueryParam string WrappedStore sessions.SessionStore }
Options represent cache store's available configurations.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the session store interface using a cache service.
func (*Store) ClearSession ¶
func (s *Store) ClearSession(w http.ResponseWriter, r *http.Request)
ClearSession clears the session from the wrapped store.
func (*Store) LoadSession ¶
LoadSession looks for a preset query parameter in the request body
representing the key to lookup from the cache.
func (*Store) SaveSession ¶
SaveSession saves the session to the cache, and wrapped store.
Click to show internal directories.
Click to hide internal directories.