Documentation ¶
Index ¶
- type FaunaSession
- type FaunaStore
- func (s *FaunaStore) Get(r *http.Request, name string) (*sessions.Session, error)
- func (s *FaunaStore) New(r *http.Request, name string) (*sessions.Session, error)
- func (s *FaunaStore) Options(opts sessions.Options)
- func (s *FaunaStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- type GobSerializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaunaSession ¶
type FaunaStore ¶
type FaunaStore struct {
// contains filtered or unexported fields
}
func NewFaunaStore ¶
func NewFaunaStore(client *f.FaunaClient) (*FaunaStore, error)
func (*FaunaStore) New ¶
New should create and return a new session.
Note that New should never return a nil session, even in the case of an error if using the Registry infrastructure to cache the session.
func (*FaunaStore) Options ¶
func (s *FaunaStore) Options(opts sessions.Options)
func (*FaunaStore) Save ¶
func (s *FaunaStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Save should persist session to the underlying store implementation.
type GobSerializer ¶
type GobSerializer struct{}
func (GobSerializer) Deserialize ¶
func (gs GobSerializer) Deserialize(d []byte, s *sessions.Session) error
Click to show internal directories.
Click to hide internal directories.