api

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryHandler

type EntryHandler interface {
	Handle(labels model.LabelSet, time time.Time, entry string) error
}

EntryHandler is something that can "handle" entries.

type EntryHandlerFunc

type EntryHandlerFunc func(labels model.LabelSet, time time.Time, entry string) error

EntryHandlerFunc is modelled on http.HandlerFunc.

func (EntryHandlerFunc) Handle

func (e EntryHandlerFunc) Handle(labels model.LabelSet, time time.Time, entry string) error

Handle implements EntryHandler.

type EntryMiddleware

type EntryMiddleware interface {
	Wrap(next EntryHandler) EntryHandler
}

EntryMiddleware is something that takes on EntryHandler and produces another.

func AddLabelsMiddleware

func AddLabelsMiddleware(additionalLabels model.LabelSet) EntryMiddleware

AddLabelsMiddleware is an EntryMiddleware that adds some labels.

type EntryMiddlewareFunc

type EntryMiddlewareFunc func(next EntryHandler) EntryHandler

EntryMiddlewareFunc is modelled on http.HandlerFunc.

func (EntryMiddlewareFunc) Wrap

Wrap implements EntryMiddleware.

type InstrumentedEntryHandler added in v1.6.9

type InstrumentedEntryHandler interface {
	EntryHandler
	UnregisterLatencyMetric(labels model.LabelSet)
}

Jump to

Keyboard shortcuts

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