Documentation ¶
Overview ¶
Package callinfo stores custom values into the Context (related to the RPC source)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCCallInfo ¶
GRPCCallInfo returns an augmented context with a CallInfo structure, only for gRPC contexts.
func HTMLFromContext ¶
HTMLFromContext returns that value of HTML() from the context, or "" if we're not able to recover one
func MysqlCallInfo ¶
MysqlCallInfo returns an augmented context with a CallInfo structure, only for Mysql contexts.
Types ¶
type CallInfo ¶
type CallInfo interface { // RemoteAddr is the remote address information for this rpc call. RemoteAddr() string // Username is associated with this rpc call, if any. Username() string // Text is a text version of this connection, as specifically as possible. Text() string // HTML represents this rpc call connection in a web-friendly way. HTML() template.HTML }
CallInfo is the extra data stored in the Context
Click to show internal directories.
Click to hide internal directories.