Documentation ¶
Index ¶
- func DBUsersToModel(users []database.User) []models.User
- type Service
- func (s *Service) DevLoginForm() templ.Component
- func (s *Service) FinishInvite(w http.ResponseWriter, r *http.Request, kthid string) (bool, httputil.ToResponse)
- func (s *Service) GetLoggedInKTHID(r *http.Request) (string, error)
- func (s *Service) GetLoggedInUser(r *http.Request) (*models.User, error)
- func (s *Service) GetUser(ctx context.Context, kthid string) (*models.User, error)
- func (s *Service) ListPasskeysForUser(ctx context.Context, kthid string) ([]models.Passkey, error)
- func (s *Service) LoginUser(ctx context.Context, kthid string) httputil.ToResponse
- func (s *Service) Logout(w http.ResponseWriter, r *http.Request) httputil.ToResponse
- func (s *Service) RedirectToLogin(w http.ResponseWriter, r *http.Request, nextURL string)
- func (s *Service) UserSetNameChangeRequest(ctx context.Context, kthid string, firstName string, familyName string) (models.User, error)
- func (s *Service) UserSetYear(ctx context.Context, kthid string, yearTag string) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { DB *database.Queries WebAuthn *webauthn.WebAuthn RelyingParty rp.RelyingParty }
func (*Service) DevLoginForm ¶
func (*Service) FinishInvite ¶
func (s *Service) FinishInvite(w http.ResponseWriter, r *http.Request, kthid string) (bool, httputil.ToResponse)
func (*Service) GetLoggedInKTHID ¶
func (*Service) GetLoggedInUser ¶
func (*Service) ListPasskeysForUser ¶
func (*Service) Logout ¶
func (s *Service) Logout(w http.ResponseWriter, r *http.Request) httputil.ToResponse
func (*Service) RedirectToLogin ¶
func (*Service) UserSetNameChangeRequest ¶
Click to show internal directories.
Click to hide internal directories.