gorilla-sessions-dynamodb

module
v0.0.0-...-902e302 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2017 License: MIT

README

gorilla-sessions-dynamodb

GoDoc Build Status

A session store backend for gorilla/sessions.

Installation

go get -u github.com/nabeken/gorilla-sessions-dynamodb/dynamostore

Documentation

Available on godoc.org.

See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underlying interface.

Running integration tests

Before run the test, you should launch DynamoDBLocal:

java -Djava.library.path=$HOME/tmp/dynamodb/DynamoDBLocal_lib -jar $HOME/tmp/dynamodb/DynamoDBLocal.jar -inMemory

then

cd dynamostore
DYNAMOSTORE_INTEG_TEST=true go test -v

DynamoDB table schema

You should create a table that has session_id as a HASH key.

You can still change the key name rather than session_id. Please consult the code.

Acknowledgement and License

This package is a rewrite of denizeren/dynamostore to use aws/aws-sdk-go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL