Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionManager ¶
func NewSessionManager ¶
func NewSessionManager(rdb *redis.Client, conn *sqlx.DB) *SessionManager
func (*SessionManager) GenerateSession ¶
func (s *SessionManager) GenerateSession(data UserSession) (string, error)
func (*SessionManager) GetSession ¶
func (s *SessionManager) GetSession(session string) (*UserSession, error)
func (*SessionManager) SignIn ¶
func (s *SessionManager) SignIn(email, password string) (string, error)
func (*SessionManager) SignOut ¶
func (s *SessionManager) SignOut(sessionId string) error
Click to show internal directories.
Click to hide internal directories.