Documentation ¶
Index ¶
- func ContextWithRequestID(ctx context.Context, requestId string) context.Context
- func ContextWithUserID(ctx context.Context, UserId string) context.Context
- func RequestIDFromContext(ctx context.Context) string
- func RequestIDFromHeader(header http.Header) string
- func RequestIDToHeader(header http.Header, requestID string)
- func UserIDFromContext(ctx context.Context) string
- func UserIDFromHeader(header http.Header) string
- func UserIDToHeader(header http.Header, UserID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithRequestID ¶
ContextWithRequestID set request id into the context
func ContextWithUserID ¶
ContextWithUserID set User id into the context
func RequestIDFromContext ¶
RequestIDFromContext get request id from context
func RequestIDFromHeader ¶
RequestIDFromHeader get request id from header
func RequestIDToHeader ¶
RequestIDToHeader set request id to the header
func UserIDFromContext ¶
UserIDFromContext get User id from context
func UserIDFromHeader ¶
UserIDFromHeader get user id from header
func UserIDToHeader ¶
UserIDToHeader set user id to the header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.