httpingest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Receive(ev event.Event) error
}

Collector is a receiver of events that handles sending those events to some downstream broker.

type Handler

type Handler struct {
	Collector Collector

	Logger *slog.Logger
}

Handler receives an event in CloudEvents format and forwards it to a {Collector}.

func (Handler) ServeHTTP

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

Jump to

Keyboard shortcuts

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