gorilla-sessions-dynamodb

module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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