Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HandlerTypeCustom Set this value in any custom handler bypassing grpc-middleware. // This makes sure that any value passed in the context is processed by UAM middlewares HandlerTypeCustom = "custom-handler" HeaderKeyRequestID = "x-request-id" HeaderKeyAuditID = "x-nv-audit-id" HeaderETag = "etag" HeaderNewETag = "new-etag" HeaderIfMatch = "if-match" )
View Source
const HeaderNVPrefix = "nvkit-"
Variables ¶
View Source
var ( StandardHeaders = []string{ HeaderKeyRequestID, HeaderKeyAuditID, HeaderETag, } )
Functions ¶
func AddRequestInfoToContext ¶
AddRequestInfoToContext adds any custom values from request headers to request context that helps nvkit middleware
func GetMetadataFromRequest ¶
GetMetadataFromRequest gets any custom values to be added to request metadata that helps nvkit middleware
func HeaderAppender ¶
func HeaderAppender() grpctransport.ServerResponseFunc
HeaderAppender adds header information to the response NOTE: This function is only called in the success path of go-kit's framework. In the error-path, error-handler handles populating the right header
func HeaderProvider ¶
func HeaderProvider() grpctransport.ServerRequestFunc
HeaderProvider provides a way to append headers to the request context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.