Documentation ¶
Index ¶
Constants ¶
View Source
const AuthorizeURL = "/authorize"
AuthorizeURL is the path to the authorization URL.
Variables ¶
View Source
var ( // authorized to access a given resource. ErrUnauthorized = errors.New("unauthorized") // ErrValidation is returned when a saved resource is invalid. It is used // as a marker since validation errors are handled by rerendering the // template instead of displaying an error. ErrInvalid = errors.New("invalid resource") )
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, err error)
Error translates errors into HTTP responses.
Types ¶
type CreateInvestigationHandler ¶
type CreateInvestigationHandler struct {
// contains filtered or unexported fields
}
CreateInvestigationHandler creates a new investigation.
func (*CreateInvestigationHandler) ServeHTTP ¶
func (h *CreateInvestigationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type EditInvestigationHandler ¶
type EditInvestigationHandler struct {
// contains filtered or unexported fields
}
EditInvestigationHandler renders an editable form for an existing investigation.
func (*EditInvestigationHandler) ServeHTTP ¶
func (h *EditInvestigationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type InvestigationHandler ¶
type InvestigationHandler struct {
// contains filtered or unexported fields
}
InvestigationHandler renders a single investigation.
func (*InvestigationHandler) ServeHTTP ¶
func (h *InvestigationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type InvestigationsHandler ¶
type InvestigationsHandler struct {
// contains filtered or unexported fields
}
InvestigationsHandler renders a list of investigations for the current user.
func (*InvestigationsHandler) ServeHTTP ¶
func (h *InvestigationsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type NewInvestigationHandler ¶
type NewInvestigationHandler struct {
// contains filtered or unexported fields
}
NewInvestigationHandler renders an editable form for a new investigation.
func (*NewInvestigationHandler) ServeHTTP ¶
func (h *NewInvestigationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.