Documentation
¶
Index ¶
- type Querier
- type Service
- func (s *Service) ListAdminSessionsPage(ctx context.Context, currentSessionID string, limit, offset int32) (*api.AuthSessionPage, error)
- func (s *Service) ListProfileSessionsPage(ctx context.Context, user db.User, currentSessionID string, ...) (*api.AuthSessionPage, error)
- func (s *Service) RevokeAdminSession(ctx context.Context, sessionID uuid.UUID) error
- func (s *Service) RevokeAllAdminSessions(ctx context.Context) error
- func (s *Service) RevokeOtherProfileSessions(ctx context.Context, user db.User, currentSessionID string) error
- func (s *Service) RevokeProfileSession(ctx context.Context, user db.User, sessionID uuid.UUID) error
- func (s *Service) ValidateSession(ctx context.Context, sessionID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier interface {
CountActiveAuthSessions(ctx context.Context) (int64, error)
CountActiveAuthSessionsByUserID(ctx context.Context, arg db.CountActiveAuthSessionsByUserIDParams) (int64, error)
GetAuthSessionByID(ctx context.Context, arg db.GetAuthSessionByIDParams) (db.AuthSession, error)
GetUserByID(ctx context.Context, arg db.GetUserByIDParams) (db.User, error)
ListActiveAuthSessionsByUserPage(ctx context.Context, arg db.ListActiveAuthSessionsByUserPageParams) ([]db.AuthSession, error)
ListActiveAuthSessionsPage(ctx context.Context, arg db.ListActiveAuthSessionsPageParams) ([]db.AuthSession, error)
ListAuthSessionsByUserID(ctx context.Context, arg db.ListAuthSessionsByUserIDParams) ([]db.AuthSession, error)
RevokeAllActiveAuthSessions(ctx context.Context, arg db.RevokeAllActiveAuthSessionsParams) (int64, error)
RevokeAuthSession(ctx context.Context, arg db.RevokeAuthSessionParams) (db.AuthSession, error)
RevokeOtherAuthSessionsForUser(ctx context.Context, arg db.RevokeOtherAuthSessionsForUserParams) (int64, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ListAdminSessionsPage ¶
func (*Service) ListProfileSessionsPage ¶
func (*Service) RevokeAdminSession ¶
func (*Service) RevokeAllAdminSessions ¶
func (*Service) RevokeOtherProfileSessions ¶
func (*Service) RevokeProfileSession ¶
Click to show internal directories.
Click to hide internal directories.