Versions in this module Expand all Collapse all v0 v0.1.0 Apr 28, 2026 Changes in this version + var ErrUnsupportedColor = errors.New("unsupported color") + var StaticAssets fs.FS = os.DirFS("static") + func NormalizeColor(color string) (string, error) + type ApiHandler struct + func NewApiHandler(sm *model.ShieldMapper, imgHost string) *ApiHandler + func (ah *ApiHandler) HandlePOST(w http.ResponseWriter, r *http.Request) + type DashboardShieldApiHandler struct + func NewDashboardShieldApiHandler(sm *model.ShieldMapper, jwtAuth *JwtAuth) *DashboardShieldApiHandler + func (dh *DashboardShieldApiHandler) HandlePUT(w http.ResponseWriter, r *http.Request) + func (sah *DashboardShieldApiHandler) HandleDELETE(w http.ResponseWriter, r *http.Request) + type DashboardShieldApiIndexHandler struct + func NewDashboardShieldApiIndexHandler(sm *model.ShieldMapper, jwtAuth *JwtAuth) *DashboardShieldApiIndexHandler + func (sh *DashboardShieldApiIndexHandler) HandleGET(w http.ResponseWriter, r *http.Request) + func (sh *DashboardShieldApiIndexHandler) HandlePOST(w http.ResponseWriter, r *http.Request) + type DebugAuthHandler struct + func NewDebugAuthHandler(um *model.UserMapper, jwtAuth *JwtAuth) *DebugAuthHandler + func (ah *DebugAuthHandler) LoginHandler(w http.ResponseWriter, r *http.Request) + type GitHubAuthHandler struct + func NewGitHubAuthHandler(um *model.UserMapper, clientID string, clientSecret string, jwtAuth *JwtAuth) *GitHubAuthHandler + func (ah *GitHubAuthHandler) CallbackHandler(w http.ResponseWriter, r *http.Request) + func (ah *GitHubAuthHandler) LoginHandler(w http.ResponseWriter, r *http.Request) + type JwtAuth struct + Secret []byte + func (j *JwtAuth) Authorize(w http.ResponseWriter, uid int64) error + func (j *JwtAuth) GetAuth(r *http.Request) *int64 + type ShieldHandler struct + func NewShieldHandler(sm *model.ShieldMapper) *ShieldHandler + func (sh *ShieldHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type StaticShieldHandler struct + func (ssh *StaticShieldHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)