[v4] improve metadata documentation (#216)
All checks were successful
coverage / build (push) Successful in 1m47s
test / test (push) Successful in 2m50s

* add usage docs for context types and metadata, improve comments

* changes after review
This commit is contained in:
2025-05-06 13:02:27 +05:00
committed by GitHub
parent b7c98da6d1
commit 1a1b67866a
5 changed files with 388 additions and 340 deletions

View File

@@ -2,18 +2,18 @@
package metadata
var (
// HeaderTopic is the header name that contains topic name
// HeaderTopic is the header name that contains topic name.
HeaderTopic = "Micro-Topic"
// HeaderContentType specifies content type of message
// HeaderContentType specifies content type of message.
HeaderContentType = "Content-Type"
// HeaderEndpoint specifies endpoint in service
// HeaderEndpoint specifies endpoint in service.
HeaderEndpoint = "Micro-Endpoint"
// HeaderService specifies service
// HeaderService specifies service.
HeaderService = "Micro-Service"
// HeaderTimeout specifies timeout of operation
// HeaderTimeout specifies timeout of operation.
HeaderTimeout = "Micro-Timeout"
// HeaderAuthorization specifies Authorization header
// HeaderAuthorization specifies Authorization header.
HeaderAuthorization = "Authorization"
// HeaderXRequestID specifies request id
// HeaderXRequestID specifies request id.
HeaderXRequestID = "X-Request-Id"
)