Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UserAgentHeader web requests UserAgentHeader = "user-agent" // HostNameHeader remote host name going from grpc-client HostNameHeader = "host-name" )
View Source
const ( //LoggerLevelHeader notes to change log level in current context of operation LoggerLevelHeader = SysHeaderPrefix + "log-lvl" //AppNameHeader holds application name for incoming outgoing requests AppNameHeader = SysHeaderPrefix + "app-name" //AppVersionHeader holds application version for incoming outgoing requests AppVersionHeader = SysHeaderPrefix + "app-ver" )
View Source
const (
//SysHeaderPrefix common of system GRPC metadata and HTTP headers
SysHeaderPrefix = "x-sys-"
)
Variables ¶
View Source
var ClientName clientNameExtractor
ClientName user agent extractor
Functions ¶
Types ¶
type GrpcMethodInfo ¶
GrpcMethodInfo ...
func (*GrpcMethodInfo) FromContext ¶
func (m *GrpcMethodInfo) FromContext(ctx context.Context) bool
FromContext ...
func (GrpcMethodInfo) String ¶
func (m GrpcMethodInfo) String() string
func (*GrpcMethodInfo) WrapContext ¶
func (m *GrpcMethodInfo) WrapContext(ctx context.Context) context.Context
WrapContext ...
Click to show internal directories.
Click to hide internal directories.