Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer listens for alerts on /alerts endpoint, and sends them as SNMP traps.
func New ¶
func New(configuration HTTPServerConfiguration, alertParser alertparser.AlertParser, trapSender trapsender.TrapSender) *HTTPServer
New creates an HTTPServer instance
func (HTTPServer) Configure ¶
func (httpServer HTTPServer) Configure() *http.Server
Configure creates and configures the HTTP server
type HTTPServerConfiguration ¶
type HTTPServerConfiguration struct {
WebListenAddress string
}
HTTPServerConfiguration describes the configuration for serving HTTP requests
Click to show internal directories.
Click to hide internal directories.