Учесть замечания ревью: читать timestamptz в UTC, встроить списки колонок, не требовать каноническую PHC-строку, уточнить замеры отказов
This commit is contained in:
@@ -10,9 +10,7 @@ import (
|
||||
const keyUserID = "messenger.user_id"
|
||||
|
||||
// SetUserID records the authenticated caller for the handlers behind the
|
||||
// authentication middleware and for the access log. It lives here rather
|
||||
// than in the auth package because the access log needs it and the business
|
||||
// modules must not depend on auth.
|
||||
// authentication middleware and for the access log.
|
||||
func SetUserID(c *gin.Context, id uuid.UUID) {
|
||||
c.Set(keyUserID, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user