Documentation ¶
Index ¶
- func NewSessionStorage(settings model.SessionStorageSettings) (model.SessionStorage, error)
- type DynamoDBSessionStorage
- func (dss *DynamoDBSessionStorage) DeleteSession(id string) error
- func (dss *DynamoDBSessionStorage) GetSession(id string) (model.Session, error)
- func (dss *DynamoDBSessionStorage) InsertSession(session model.Session) error
- func (dss *DynamoDBSessionStorage) ProlongSession(id string, newDuration model.SessionDuration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionStorage ¶
func NewSessionStorage(settings model.SessionStorageSettings) (model.SessionStorage, error)
NewSessionStorage creates new DynamoDB session storage.
Types ¶
type DynamoDBSessionStorage ¶
type DynamoDBSessionStorage struct {
// contains filtered or unexported fields
}
DynamoDBSessionStorage is a DynamoDB-backed storage for admin sessions.
func (*DynamoDBSessionStorage) DeleteSession ¶
func (dss *DynamoDBSessionStorage) DeleteSession(id string) error
DeleteSession deletes session from the storage.
func (*DynamoDBSessionStorage) GetSession ¶
func (dss *DynamoDBSessionStorage) GetSession(id string) (model.Session, error)
GetSession fetches session by ID.
func (*DynamoDBSessionStorage) InsertSession ¶
func (dss *DynamoDBSessionStorage) InsertSession(session model.Session) error
InsertSession inserts session to the storage.
func (*DynamoDBSessionStorage) ProlongSession ¶
func (dss *DynamoDBSessionStorage) ProlongSession(id string, newDuration model.SessionDuration) error
ProlongSession sets new duration for the existing session.
Click to show internal directories.
Click to hide internal directories.