feat(assessment): add the review band of attempt signals and the disclosed collector
This commit is contained in:
1 parent
68286af8b7
commit
b3c6dc870b
124 files changed
+13522
-633
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
assessmentusecase "lincodex/backend/internal/usecase/assessment"
|
||||
)
|
||||
|
||||
// assessmentRequestOrigin hands the authenticated session and the limiter key
|
||||
// of the client address to the server signals. The usecase turns them into
|
||||
// keyed digests; neither value is stored or logged.
|
||||
func assessmentRequestOrigin(ctx context.Context) assessmentusecase.RequestOrigin {
|
||||
session, ok := sessionFromContext(ctx)
|
||||
if !ok {
|
||||
return assessmentusecase.RequestOrigin{}
|
||||
}
|
||||
return assessmentusecase.RequestOrigin{SessionID: session.SessionID, ClientKey: clientKey(ctx)}
|
||||
}
|
||||
Reference in new issue
Block a user