Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
Referral *ReferralHandler
// Import hosts the /api/user/{import,vault}/* endpoints used by the
// bulk-import Web UI. See importpkg.Handlers.Register for the route map.
Import *importpkg.Handlers
}
Handlers groups all user-domain HTTP handlers.
Page rendering lives in aikey-control/web (React + Vite); the built SPA is embedded into aikey-trial-server/web/embed.go at binary compile time and served for every unmatched non-API path. There is therefore no Go-side page handler in this package — only the bulk-import API surface below.
type ReferralHandler ¶
type ReferralHandler struct {
// contains filtered or unexported fields
}
ReferralHandler exposes referral endpoints.
func NewReferralHandler ¶
func NewReferralHandler(repo referral.Repository) *ReferralHandler
NewReferralHandler creates a ReferralHandler.
func (*ReferralHandler) MyReferrals ¶
func (h *ReferralHandler) MyReferrals(w http.ResponseWriter, r *http.Request)
MyReferrals handles GET /accounts/me/referrals
Click to show internal directories.
Click to hide internal directories.