session

package
v0.0.0-...-5eac7db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *dynamodb.DB) *Repository

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, sessID string) (*Session, error)

func (*Repository) Save

func (r *Repository) Save(ctx context.Context, sess *Session) error

type Session

type Session struct {
	SessionID string
	UserID    string
	Email     string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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