Documentation ¶
Index ¶
Constants ¶
View Source
const (
// RequestIDSessionKey request id session context key
RequestIDSessionKey = "REQUEST_ID"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestID ¶
type RequestID uint32
RequestID of a session.
func NewRequestID ¶
func NewRequestID() RequestID
NewRequestID generates a new ID. The generated ID is high likely to be unique, but not cryptographically secure. The generated ID will never be 0.
func RequestIDFromContext ¶
RequestIDFromContext returns ID in this context, or 0 if not contained.
Click to show internal directories.
Click to hide internal directories.