1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-15 00:15:15 +02:00

completed schema migration

This commit is contained in:
Lee Brown
2019-05-25 08:26:37 -05:00
parent c19f46e07f
commit 82cd108ed6
21 changed files with 136 additions and 48 deletions

View File

@ -20,6 +20,8 @@ const KeyValues ctxKey = 1
// Values represent state for each request.
type Values struct {
Now time.Time
TraceID uint64
SpanID uint64
StatusCode int
}
@ -71,7 +73,7 @@ func (a *App) Handle(verb, path string, handler Handler, mw ...Middleware) {
// Set the context with the required values to
// process the request.
v := Values{
Now: time.Now(),
Now: time.Now(),
}
ctx := context.WithValue(r.Context(), KeyValues, &v)