Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { GetUser(ctx context.Context, sessionUUID string) (*models.User, error) SaveUser(ctx context.Context, sessionUUID string, user *models.User, d time.Duration) error }
func NewSessionProvider ¶
func NewSessionProvider(sess models.SessionRepository) Provider
NewSessionProvider Provider contructor that returns the default session provider.
Click to show internal directories.
Click to hide internal directories.