plugins

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomLogMiddleware

func CustomLogMiddleware(logger logevent.Logger) func(http.Handler) http.Handler

CustomLogMiddleware injects the provided logger in each incoming request's context

func CustomStatMiddleware

func CustomStatMiddleware(stats xstats.XStater, tags ...string) func(http.Handler) http.Handler

CustomStatMiddleware injects the provided stats client in each incoming request's context

func DefaultLogMiddleware

func DefaultLogMiddleware() func(http.Handler) http.Handler

DefaultLogMiddleware injects the default logger on each incoming request's context

func DefaultStatMiddleware

func DefaultStatMiddleware(tags ...string) func(http.Handler) http.Handler

DefaultStatMiddleware injects the default stats client on each incoming request's context

func NopLogMiddleware

func NopLogMiddleware() func(http.Handler) http.Handler

NopLogMiddleware injects a nop logger in each incoming request's context

func NopStatMiddleware

func NopStatMiddleware(tags ...string) func(http.Handler) http.Handler

NopStatMiddleware injects a nop stats client in each incoming request's context

func OS

func OS() chan error

OS listens for OS signals SIGINT and SIGTERM and writes to the channel if either of those scenarios are encountered, nil is sent over the channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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