Documentation ¶
Index ¶
- type Service
- func (s *Service) ClearSessionCookie(c echo.Context)
- func (s *Service) DeleteAllUserSessions(ctx context.Context, userID uuid.UUID) error
- func (s *Service) DeleteOldSessions()
- func (s *Service) DeleteSession(ctx context.Context, sessionID uuid.UUID) error
- func (s *Service) GetUserByToken(ctx context.Context, token string) (bool, dbgen.AuthServiceGetUserByTokenRow, error)
- func (s *Service) GetUserFromSessionCookie(c echo.Context) (bool, dbgen.AuthServiceGetUserByTokenRow, error)
- func (s *Service) GetUserSessions(ctx context.Context, userID uuid.UUID) ([]dbgen.Session, error)
- func (s *Service) Login(ctx context.Context, email, password, ip, userAgent string) (dbgen.AuthServiceLoginCreateSessionRow, error)
- func (s *Service) SetSessionCookie(c echo.Context, token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ClearSessionCookie ¶
func (s *Service) ClearSessionCookie(c echo.Context)
func (*Service) DeleteAllUserSessions ¶
func (*Service) DeleteOldSessions ¶
func (s *Service) DeleteOldSessions()
func (*Service) DeleteSession ¶
func (*Service) GetUserByToken ¶
func (*Service) GetUserFromSessionCookie ¶
func (s *Service) GetUserFromSessionCookie(c echo.Context) ( bool, dbgen.AuthServiceGetUserByTokenRow, error, )
func (*Service) GetUserSessions ¶
func (*Service) SetSessionCookie ¶
Click to show internal directories.
Click to hide internal directories.