A session store backend for gorilla/sessions.
go get -u github.com/nabeken/gorilla-sessions-dynamodb/dynamostore
Available on pkg.go.dev.
See http://www.gorillatoolkit.org/pkg/sessions for full documentation on underlying interface.
Before run the test, you should launch DynamoDBLocal:
docker run -d -p 8888:8000 amazon/dynamodb-local:1.13.6
then
cd dynamostore
export DYNAMOSTORE_DYNAMODB_ENDPOINT=http://127.0.0.1:8888
DYNAMOSTORE_INTEG_TEST=true go test -v
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.
This package is a rewrite of denizeren/dynamostore to use aws/aws-sdk-go.