Documentation ¶
Index ¶
- Variables
- func AuthClient(c client.Client) client.Client
- func AuthHandler() server.HandlerWrapper
- func CacheClient(c client.Client) client.Client
- func HTTPWrapper(h http.Handler) http.Handler
- func HandlerStats() server.HandlerWrapper
- func LogClient(c client.Client) client.Client
- func LogHandler() server.HandlerWrapper
- func MetricsHandler() server.HandlerWrapper
- func OpenTraceHandler() server.HandlerWrapper
- func OpentraceClient(c client.Client) client.Client
- func TraceCall(c client.Client) client.Client
- func TraceHandler() server.HandlerWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HeaderPrefix = "Micro-"
)
Functions ¶
func AuthClient ¶
AuthClient wraps requests with the auth header
func AuthHandler ¶
func AuthHandler() server.HandlerWrapper
AuthHandler wraps a server handler to perform auth
func CacheClient ¶
CacheClient wraps requests with the cache wrapper
func HTTPWrapper ¶
HTTPWrapper returns an HTTP handler wrapper:
func HandlerStats ¶
func HandlerStats() server.HandlerWrapper
HandlerStats wraps a server handler to generate request/error stats
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 ¶
OpentraceClient wraps requests with the open tracing headers
func TraceHandler ¶
func TraceHandler() server.HandlerWrapper
TraceHandler wraps a server handler to perform tracing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.