Documentation ¶
Overview ¶
Package riakstore is a session store backend for gorilla/sessions using Riak.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDatabase = errors.New("no databases available")
Functions ¶
This section is empty.
Types ¶
type RiakStore ¶
type RiakStore struct { Riaken *riaken.Client // riaken client Bucket string // bucket to store sessions in Codecs []securecookie.Codec // session codecs Options *sessions.Options // default configuration DefaultMaxAge int // default TTL for a MaxAge == 0 session }
RiakStore stores sessions in a redis backend.
Example ¶
// RiakStore addrs := []string{"127.0.0.1:8083", "127.0.0.1:8084", "127.0.0.1:8085", "127.0.0.1:8086", "127.0.0.1:8087"} store := NewRiakStore(addrs, 5, "sessions", []byte("secret-key")) defer store.Close()
Output:
func NewRiakStore ¶
NewRiakStore returns a new RiakStore.
Click to show internal directories.
Click to hide internal directories.