Documentation ¶
Overview ¶
Package dynamodb has a storage provider that uses an AWS DynamoDB table.
The DynamoDB table is expected to have the following structure:
Hash Key: name="id" type="S" Sort Key: none Time to Live Attribute: name="expires_at"
Index ¶
- type Provider
- func (db *Provider) CreateTable(readCapacityUnits, writeCapacityUnits int64) error
- func (db *Provider) Delete(ctx context.Context, id string) error
- func (db *Provider) DropTable() error
- func (db *Provider) Fetch(ctx context.Context, id string) (*storage.Record, error)
- func (db *Provider) Save(ctx context.Context, rec *storage.Record, oldVersion int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides storage for sessions using an AWS DynamoDB table. It implements the storage.Provider interface.
The structure of the DynamoDB table is described in the package comment.
func (*Provider) CreateTable ¶
CreateTable creates the dynamodb table.
Click to show internal directories.
Click to hide internal directories.