You've already forked golang-saas-starter-kit
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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user