Documentation
¶
Overview ¶
You can use the "packr clean" command to clean up this, and any other packr generated files.
Index ¶
- func HTMLError(w http.ResponseWriter, err error, code int)
- func JSONError(w http.ResponseWriter, err error, code int)
- func LogError(err error, code int)
- func Register(store storages.Store, router *mux.Router, baseInfo config.BaseInfo, ...) error
- func RegisterWithHtmlTemplater(store storages.Store, router *mux.Router, baseInfo config.BaseInfo, ...) error
- func SetLocationContext(req *http.Request, location *time.Location)
- type ComponentStateData
- type HtmlTemplater
- type HttpError
- type IndexData
- type LocationContextType
- type LocationHandler
- type MinifyMiddleware
- type Serve
- func (a Serve) AddMessage(w http.ResponseWriter, req *http.Request)
- func (a Serve) AdminAddEditIncident(w http.ResponseWriter, req *http.Request)
- func (a Serve) AdminAddEditIncidentByType(w http.ResponseWriter, req *http.Request, typ string)
- func (a Serve) AdminAddEditMaintenance(w http.ResponseWriter, req *http.Request)
- func (a Serve) AdminIncidents(w http.ResponseWriter, req *http.Request)
- func (a Serve) AdminMaintenance(w http.ResponseWriter, req *http.Request)
- func (a Serve) Atom(w http.ResponseWriter, req *http.Request)
- func (a Serve) ByDate(w http.ResponseWriter, req *http.Request)
- func (a Serve) CreateIncident(w http.ResponseWriter, req *http.Request)
- func (a Serve) Delete(w http.ResponseWriter, req *http.Request)
- func (a Serve) DeleteMessage(w http.ResponseWriter, req *http.Request)
- func (a Serve) History(w http.ResponseWriter, req *http.Request)
- func (a Serve) Ical(w http.ResponseWriter, req *http.Request)
- func (a Serve) Incident(w http.ResponseWriter, req *http.Request)
- func (a Serve) Index(w http.ResponseWriter, req *http.Request)
- func (a Serve) IsDefaultLocation(req *http.Request) bool
- func (a Serve) Location(req *http.Request) *time.Location
- func (a Serve) Notify(w http.ResponseWriter, req *http.Request)
- func (a Serve) ReadMessage(w http.ResponseWriter, req *http.Request)
- func (a Serve) ReadMessages(w http.ResponseWriter, req *http.Request)
- func (a Serve) Rss(w http.ResponseWriter, req *http.Request)
- func (a Serve) ShowComponents(w http.ResponseWriter, req *http.Request)
- func (a Serve) ShowFlagComponentStates(w http.ResponseWriter, req *http.Request)
- func (a Serve) ShowFlagIncidentStates(w http.ResponseWriter, req *http.Request)
- func (a Serve) ShowIncident(w http.ResponseWriter, req *http.Request)
- func (a Serve) SubscribeEmail(w http.ResponseWriter, req *http.Request)
- func (a Serve) UnsubscribeEmail(w http.ResponseWriter, req *http.Request)
- func (a Serve) Update(w http.ResponseWriter, req *http.Request)
- func (a Serve) UpdateMessage(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentStateData ¶
type ComponentStateData struct { Name string Description string State models.ComponentState }
type HtmlTemplater ¶
type HttpError ¶
type LocationContextType ¶
type LocationContextType int
const (
LocationContextKey LocationContextType = iota
)
type LocationHandler ¶
type LocationHandler struct {
// contains filtered or unexported fields
}
func NewLocationHandler ¶
func NewLocationHandler(sessKey string) *LocationHandler
type MinifyMiddleware ¶
type MinifyMiddleware struct {
// contains filtered or unexported fields
}
func NewMinifyMiddleware ¶
func NewMinifyMiddleware(next http.Handler) *MinifyMiddleware
func (*MinifyMiddleware) ServeHTTP ¶
func (m *MinifyMiddleware) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Serve ¶
type Serve struct {
// contains filtered or unexported fields
}
func (Serve) AddMessage ¶
func (a Serve) AddMessage(w http.ResponseWriter, req *http.Request)
func (Serve) AdminAddEditIncident ¶
func (a Serve) AdminAddEditIncident(w http.ResponseWriter, req *http.Request)
func (Serve) AdminAddEditIncidentByType ¶
func (Serve) AdminAddEditMaintenance ¶
func (a Serve) AdminAddEditMaintenance(w http.ResponseWriter, req *http.Request)
func (Serve) AdminIncidents ¶
func (a Serve) AdminIncidents(w http.ResponseWriter, req *http.Request)
func (Serve) AdminMaintenance ¶
func (a Serve) AdminMaintenance(w http.ResponseWriter, req *http.Request)
func (Serve) CreateIncident ¶
func (a Serve) CreateIncident(w http.ResponseWriter, req *http.Request)
func (Serve) DeleteMessage ¶
func (a Serve) DeleteMessage(w http.ResponseWriter, req *http.Request)
func (Serve) Notify ¶ added in v1.2.0
func (a Serve) Notify(w http.ResponseWriter, req *http.Request)
func (Serve) ReadMessage ¶
func (a Serve) ReadMessage(w http.ResponseWriter, req *http.Request)
func (Serve) ReadMessages ¶
func (a Serve) ReadMessages(w http.ResponseWriter, req *http.Request)
func (Serve) ShowComponents ¶
func (a Serve) ShowComponents(w http.ResponseWriter, req *http.Request)
func (Serve) ShowFlagComponentStates ¶
func (a Serve) ShowFlagComponentStates(w http.ResponseWriter, req *http.Request)
func (Serve) ShowFlagIncidentStates ¶
func (a Serve) ShowFlagIncidentStates(w http.ResponseWriter, req *http.Request)
func (Serve) ShowIncident ¶
func (a Serve) ShowIncident(w http.ResponseWriter, req *http.Request)
func (Serve) SubscribeEmail ¶
func (a Serve) SubscribeEmail(w http.ResponseWriter, req *http.Request)
func (Serve) UnsubscribeEmail ¶
func (a Serve) UnsubscribeEmail(w http.ResponseWriter, req *http.Request)
func (Serve) UpdateMessage ¶
func (a Serve) UpdateMessage(w http.ResponseWriter, req *http.Request)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.