Documentation ¶
Index ¶
Constants ¶
View Source
const XRequestID = "X-Request-ID"
Variables ¶
This section is empty.
Functions ¶
func NewRequestIDRangerPlugin ¶
func NewRequestIDRangerPlugin(opts ...RequestIdOption) ranger.ClientPlugin
NewRequestIDPlugin creates a RangerPlugin that adds the X-Request-ID header to outgoing requests. All RPCs that share the same RangerPlugin will get the same ID
func XInfoHeader ¶
XInfoHeader encodes key/value pairs to a string that can be used as a HTTP header. The keys and values are sanitized to be used as HTTP header values. All spaces in keys and values are replaced with dashes.
Types ¶
type RequestIdOption ¶
type RequestIdOption func(s *requestIdPlugin)
func WithUuid ¶
func WithUuid(requestId string) RequestIdOption
Click to show internal directories.
Click to hide internal directories.