package
Version:
v0.0.0
Opens a new window with list of versions in this module.
Published: Jul 11, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ContextWithMetadata returns a new Context that carries metadata ptr.
type Metadata struct {
Now time.Time `json:"-"`
TraceID string `json:"traceId"`
StatusCode int `json:"statusCode"`
}
Metadata represent state for each request.
FromContext returns the Identity value stored in ctx, if any.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.