Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶ added in v0.2.0
type Configuration struct {
ToolKitConfiguration web.FlagConfig
}
Configuration describes the configuration for serving HTTP requests
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 Configuration, alertParser alertparser.AlertParser, trapSender trapsender.TrapSender, logger *log.Logger) *HTTPServer
New creates an HTTPServer instance
func (HTTPServer) Start ¶ added in v1.5.0
func (httpServer HTTPServer) Start() error
Configure creates and configures the HTTP server
func (HTTPServer) Stop ¶ added in v1.5.0
func (httpServer HTTPServer) Stop() error
Click to show internal directories.
Click to hide internal directories.