Documentation
¶
Overview ¶
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewAdminHandlers ¶
func (*Handlers) HandleChainIntegrityAPI ¶
func (h *Handlers) HandleChainIntegrityAPI(w http.ResponseWriter, r *http.Request)
func (*Handlers) HandleDashboard ¶
func (h *Handlers) HandleDashboard(w http.ResponseWriter, r *http.Request)
func (*Handlers) HandleDocumentDetails ¶
func (h *Handlers) HandleDocumentDetails(w http.ResponseWriter, r *http.Request)
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewAdminMiddleware ¶
func NewAdminMiddleware(userService userService, baseURL string, adminEmails []string, templates *template.Template) *Middleware
func (*Middleware) RequireAdmin ¶
func (m *Middleware) RequireAdmin(next http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.