mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Integrated Fantastic coffie (decaffeinated) base version
This commit is contained in:
parent
2fc5535f0f
commit
94036c4831
482 changed files with 476112 additions and 0 deletions
21
service/api/reqcontext/request-context.go
Normal file
21
service/api/reqcontext/request-context.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
Package reqcontext contains the request context. Each request will have its own instance of RequestContext filled by the
|
||||
middleware code in the api-context-wrapper.go (parent package).
|
||||
|
||||
Each value here should be assumed valid only per request only, with some exceptions like the logger.
|
||||
*/
|
||||
package reqcontext
|
||||
|
||||
import (
|
||||
"github.com/gofrs/uuid"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// RequestContext is the context of the request, for request-dependent parameters
|
||||
type RequestContext struct {
|
||||
// ReqUUID is the request unique ID
|
||||
ReqUUID uuid.UUID
|
||||
|
||||
// Logger is a custom field logger for the request
|
||||
Logger logrus.FieldLogger
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue