web

package
v0.0.0-...-6e00f06 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler satisfies the http.Handler interface for receiving rfc 5424 messages via HTTP.

func NewHandler

func NewHandler(s Setter) *Handler

NewHandler returns a new Handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP receives HTTP requests and calls the handlers Setter func with the request body.

type Setter

type Setter func([]byte)

Setter is a func that can receive a slice of bytes.

Jump to

Keyboard shortcuts

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