package
0.0.0-20200609095714-edc8019f93cc
Repository: https://github.com/improbable-eng/go-httpwares.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DefaultServiceNameDetector is the default detector of services from URLs.
ExtractInbound returns a pre-existing Tags object in the request's Context meant for server-side.
ExtractInbounfFromCtx returns a pre-existing Tags object in the request's Context.
ExtractOutbound returns a pre-existing Tags object in the request's Context meant for server-side.
ExtractInbounfFromCtx returns a pre-existing Tags object in the request's Context.
HandlerName is a piece of middleware that is meant to be used right around an htpt.Handler that will tag it with a given service name and method name.
Middleware returns a http.Handler middleware values for request tags.
Tripperware returns a new client-side ware that injects tags about the request.
WithServiceName is an option for client-side wares that explicitly states the name of the service called.
WithServiceNameDetector allows you to customize the function for automatically detecting the service name from URLs.
WithTagExtractor adds another request tag extractor, allowing you to customize what tags get prepopulated from the request.

# Constants

TagForCallService is a string naming the ctxtag identifying a "service" grouping for an http.Request (e.g.
TagForHandlerGroup is a string naming the ctxtag identifying a name of the grouping of http.Handlers (e.g.
TagForHandlerName is a string naming the ctxtag identifying a logical name for the http.Handler (e.g.

# Variables

No description provided by the author

# Structs

Tags is the struct used for storing request tags between Context calls.

# Type aliases

No description provided by the author
RequestTagExtractorFunc is a signature of user-customizeable functions for extracting tags from requests.