Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedColor = errors.New("unsupported color")
View Source
var StaticAssets fs.FS = os.DirFS("static")
StaticAssets is a static site asset filesystem
Functions ¶
func NormalizeColor ¶
Types ¶
type ApiHandler ¶
type ApiHandler struct {
// contains filtered or unexported fields
}
func NewApiHandler ¶
func NewApiHandler(sm *model.ShieldMapper, imgHost string) *ApiHandler
func (*ApiHandler) HandlePOST ¶
func (ah *ApiHandler) HandlePOST(w http.ResponseWriter, r *http.Request)
type DashboardShieldApiHandler ¶
type DashboardShieldApiHandler struct {
// contains filtered or unexported fields
}
func NewDashboardShieldApiHandler ¶
func NewDashboardShieldApiHandler(sm *model.ShieldMapper, jwtAuth *JwtAuth) *DashboardShieldApiHandler
func (*DashboardShieldApiHandler) HandleDELETE ¶
func (sah *DashboardShieldApiHandler) HandleDELETE(w http.ResponseWriter, r *http.Request)
func (*DashboardShieldApiHandler) HandlePUT ¶
func (dh *DashboardShieldApiHandler) HandlePUT(w http.ResponseWriter, r *http.Request)
type DashboardShieldApiIndexHandler ¶
type DashboardShieldApiIndexHandler struct {
// contains filtered or unexported fields
}
func NewDashboardShieldApiIndexHandler ¶
func NewDashboardShieldApiIndexHandler(sm *model.ShieldMapper, jwtAuth *JwtAuth) *DashboardShieldApiIndexHandler
func (*DashboardShieldApiIndexHandler) HandleGET ¶
func (sh *DashboardShieldApiIndexHandler) HandleGET(w http.ResponseWriter, r *http.Request)
func (*DashboardShieldApiIndexHandler) HandlePOST ¶
func (sh *DashboardShieldApiIndexHandler) HandlePOST(w http.ResponseWriter, r *http.Request)
type DebugAuthHandler ¶
type DebugAuthHandler struct {
// contains filtered or unexported fields
}
func NewDebugAuthHandler ¶
func NewDebugAuthHandler(um *model.UserMapper, jwtAuth *JwtAuth) *DebugAuthHandler
func (*DebugAuthHandler) LoginHandler ¶
func (ah *DebugAuthHandler) LoginHandler(w http.ResponseWriter, r *http.Request)
type GitHubAuthHandler ¶
type GitHubAuthHandler struct {
// contains filtered or unexported fields
}
func NewGitHubAuthHandler ¶
func NewGitHubAuthHandler(um *model.UserMapper, clientID string, clientSecret string, jwtAuth *JwtAuth) *GitHubAuthHandler
func (*GitHubAuthHandler) CallbackHandler ¶
func (ah *GitHubAuthHandler) CallbackHandler(w http.ResponseWriter, r *http.Request)
func (*GitHubAuthHandler) LoginHandler ¶
func (ah *GitHubAuthHandler) LoginHandler(w http.ResponseWriter, r *http.Request)
type ShieldHandler ¶
type ShieldHandler struct {
// contains filtered or unexported fields
}
func NewShieldHandler ¶
func NewShieldHandler(sm *model.ShieldMapper) *ShieldHandler
func (*ShieldHandler) ServeHTTP ¶
func (sh *ShieldHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StaticShieldHandler ¶
type StaticShieldHandler struct{}
func (*StaticShieldHandler) ServeHTTP ¶
func (ssh *StaticShieldHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.