Documentation ¶
Index ¶
- type Server
- func (srv *Server) HandleAlert(res http.ResponseWriter, req *http.Request)
- func (srv *Server) HandleHealth(res http.ResponseWriter, req *http.Request)
- func (srv *Server) Run()
- func (srv *Server) SendAlert(alert *alertmanager.Alert) error
- func (srv *Server) UnmarshalAlerts(r io.Reader) ([]alertmanager.Alert, error)
- func (srv *Server) WriteError(res http.ResponseWriter, err error, code int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) HandleAlert ¶
func (srv *Server) HandleAlert(res http.ResponseWriter, req *http.Request)
untested
func (*Server) HandleHealth ¶
func (srv *Server) HandleHealth(res http.ResponseWriter, req *http.Request)
untested
func (*Server) UnmarshalAlerts ¶
func (*Server) WriteError ¶
func (srv *Server) WriteError(res http.ResponseWriter, err error, code int)
untested
Click to show internal directories.
Click to hide internal directories.