Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilRequest = errors.New("nil request")
)
Functions ¶
func SetCtxMetadataAuthorizationToken ¶
func SetCtxMetadataAuthorizationToken( ctx context.Context, r *http.Request, ) (context.Context, error)
SetCtxMetadataAuthorizationToken is a helper function to set the authorization metadata in the context
Retrieves the authorization from the request context and sets it in the provided context.
Parameters:
- ctx: the context
- r: the request
Returns:
- context.Context: the context with the authorization metadata
- error: an error if the request is nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.