Documentation
¶
Index ¶
- func Register(group *gin.RouterGroup, handler *Handler)
- type Handler
- func (h *Handler) BeginPasskeyLogin(c *gin.Context)
- func (h *Handler) BeginPasskeyRegistration(c *gin.Context)
- func (h *Handler) BindTOTP(c *gin.Context)
- func (h *Handler) ChangePassword(c *gin.Context)
- func (h *Handler) CreateAPIKey(c *gin.Context)
- func (h *Handler) CreatePasskey(c *gin.Context)
- func (h *Handler) CurrentUser(c *gin.Context)
- func (h *Handler) CurrentUserBillingOverview(c *gin.Context)
- func (h *Handler) DeleteAPIKey(c *gin.Context)
- func (h *Handler) DeletePasskey(c *gin.Context)
- func (h *Handler) DeleteTOTP(c *gin.Context)
- func (h *Handler) ListAPIKeys(c *gin.Context)
- func (h *Handler) ListCurrentUserBillingCharges(c *gin.Context)
- func (h *Handler) Login(c *gin.Context)
- func (h *Handler) LoginPasskey(c *gin.Context)
- func (h *Handler) LoginTOTP(c *gin.Context)
- func (h *Handler) RegisterUser(c *gin.Context)
- func (h *Handler) ShowTOTP(c *gin.Context)
- func (h *Handler) UpdateAPIKey(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(group *gin.RouterGroup, handler *Handler)
Register wires user API routes.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(repo *cluster.Repository, runtime *home.Runtime) *Handler
NewHandler creates a user API handler.
func (*Handler) BeginPasskeyLogin ¶
BeginPasskeyLogin returns WebAuthn assertion options for passkey login.
func (*Handler) BeginPasskeyRegistration ¶
BeginPasskeyRegistration returns WebAuthn creation options for the authenticated user.
func (*Handler) ChangePassword ¶
ChangePassword updates the authenticated user's password.
func (*Handler) CreateAPIKey ¶
CreateAPIKey creates an API key owned by the authenticated user.
func (*Handler) CreatePasskey ¶
CreatePasskey creates a passkey entry for the authenticated user.
func (*Handler) CurrentUser ¶
CurrentUser returns the authenticated user profile.
func (*Handler) CurrentUserBillingOverview ¶
CurrentUserBillingOverview returns the billing overview for the authenticated user.
func (*Handler) DeleteAPIKey ¶
DeleteAPIKey deletes an API key owned by the authenticated user.
func (*Handler) DeletePasskey ¶
DeletePasskey deletes a passkey entry for the authenticated user.
func (*Handler) DeleteTOTP ¶
DeleteTOTP removes the authenticated user's TOTP configuration.
func (*Handler) ListAPIKeys ¶
ListAPIKeys lists API keys owned by the authenticated user.
func (*Handler) ListCurrentUserBillingCharges ¶
ListCurrentUserBillingCharges returns billing charges for the authenticated user.
func (*Handler) LoginPasskey ¶
LoginPasskey handles passkey login.
func (*Handler) RegisterUser ¶
RegisterUser creates a user account.
func (*Handler) UpdateAPIKey ¶
UpdateAPIKey updates an API key owned by the authenticated user.