Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReqId ¶
GetReqId shortcut of ParseRequest with ReqId to get request id from given http context.
func SetFromRequestHeader ¶
SetFromRequestHeader set any available metadata from given http context in the request header.
Types ¶
type Metadata ¶
type Metadata struct {
Authorization string
UserAgent string
CacheControl string
ForwardedFor string
RequestFrom string
DeviceId string
App string
VersionApp string
ReqId string
ReqTags string
ReqUser string
ReqNama string
ReqKodeJabatan string
ReqNamaJabatan string
ReqKodeUker string
ReqNamaUker string
ReqJenisUker string
ReqKodeMainUker string
ReqKodeRegion string
PathGateway string
ApiKey string
}
Metadata holds any request-scoped shared data within brispot microservice.
func ParseRequest ¶
ParseRequest return Metadata from given http context but return empty data instead if no data were found.
Click to show internal directories.
Click to hide internal directories.