wrapper

package
v3.10.13 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderPrefix = "Micro-"
)

Functions

func AuthClient

func AuthClient(c client.Client) client.Client

AuthClient wraps requests with the auth header

func AuthHandler

func AuthHandler() server.HandlerWrapper

AuthHandler wraps a server handler to perform auth

func CacheClient

func CacheClient(c client.Client) client.Client

CacheClient wraps requests with the cache wrapper

func HTTPWrapper

func HTTPWrapper(h http.Handler) http.Handler

HTTPWrapper returns an HTTP handler wrapper:

func HandlerStats

func HandlerStats() server.HandlerWrapper

HandlerStats wraps a server handler to generate request/error stats

func LogClient

func LogClient(c client.Client) client.Client

LogClient wap client for log

func LogHandler

func LogHandler() server.HandlerWrapper

LogHandler for server end

func MetricsHandler

func MetricsHandler() server.HandlerWrapper

MetricsHandler wraps a server handler to instrument calls

func OpenTraceHandler

func OpenTraceHandler() server.HandlerWrapper

OpenTraceHandler wraps a server handler to perform opentracing:

func OpentraceClient

func OpentraceClient(c client.Client) client.Client

OpentraceClient wraps requests with the open tracing headers

func TraceCall

func TraceCall(c client.Client) client.Client

TraceCall is a call tracing wrapper

func TraceHandler

func TraceHandler() server.HandlerWrapper

TraceHandler wraps a server handler to perform tracing

Types

This section is empty.

Jump to

Keyboard shortcuts

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