Skip to content

nabeken/gorilla-sessions-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gorilla-sessions-dynamodb

GoDoc Go

A session store backend for gorilla/sessions.

Installation

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

Documentation

Available on pkg.go.dev.

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

Running integration tests

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

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.

About

A session store backend by DynamoDB for gorilla/sessions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages