Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoOptionsSetErr = errors.New("You must provide a set of valid options")
)
Functions ¶
This section is empty.
Types ¶
type ArangoDbOptions ¶
type ArangoDbOptions struct {
//CollectionName is if you have created your own session collection. Otherwise, the "sessions" name will be used
CollectionName string
//Use these options if you don't already have a connection available and want to create a new one
Host string //http://localhost:8529 will be used if not specified
DatabaseName string //_system will be used if not specified
User string //root will be used if not specified
Password string //root's blank password will be used if not specified
//Set this if you already have an arango connection and want to use that instead.
//You should still set the CollectionName unless you want to use the default "sessions" collection
Database *arango.Database
//Setting this will cause all other options to be ignored. This collection will be used write sessions to.
Collection *arango.Collection
//SessionOptions specifies options for the sessions that this store will create. See github.com/gorilla/sessions
SessionOptions *sessions.Options
}
ArangoDbOptions holds options for the ArangoDbStore, such as connection info. It also lets you provide
type ArangoDbStore ¶
type ArangoDbStore struct {
Codecs []securecookie.Codec
SessionOptions *sessions.Options
// contains filtered or unexported fields
}
func NewArangoDbStore ¶
func NewArangoDbStore(opts *ArangoDbOptions, keyPairs ...[]byte) (*ArangoDbStore, error)
func (*ArangoDbStore) Save ¶
func (a *ArangoDbStore) Save(r *http.Request, w http.ResponseWriter, s *sessions.Session) error
Click to show internal directories.
Click to hide internal directories.