httpserver

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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 {
	WebListenAddress string
}

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) *HTTPServer

New creates an HTTPServer instance

func (HTTPServer) Configure

func (httpServer HTTPServer) Configure() *http.Server

Configure creates and configures the HTTP server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL