feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -17,14 +17,19 @@ import (
|
||||
type Handler struct {
|
||||
api.UnimplementedHandler
|
||||
|
||||
health *HealthHandler
|
||||
identity *IdentityHandler
|
||||
consent *ConsentHandler
|
||||
profile *ProfileHandler
|
||||
questionnaire *QuestionnaireHandler
|
||||
catalog *CatalogHandler
|
||||
organization *OrganizationHandler
|
||||
problems *problem.Responder
|
||||
health *HealthHandler
|
||||
identity *IdentityHandler
|
||||
consent *ConsentHandler
|
||||
profile *ProfileHandler
|
||||
questionnaire *QuestionnaireHandler
|
||||
catalog *CatalogHandler
|
||||
organization *OrganizationHandler
|
||||
need *NeedHandler
|
||||
support *SupportHandler
|
||||
assessment *AssessmentHandler
|
||||
assessmentSignals *AssessmentSignalHandler
|
||||
privacy *PrivacyHandler
|
||||
problems *problem.Responder
|
||||
}
|
||||
|
||||
var _ api.Handler = (*Handler)(nil)
|
||||
@@ -62,6 +67,31 @@ func WithOrganization(organization *OrganizationHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.organization = organization }
|
||||
}
|
||||
|
||||
// WithNeed serves organization-scoped hiring needs.
|
||||
func WithNeed(need *NeedHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.need = need }
|
||||
}
|
||||
|
||||
// WithSupport serves account-owned support cases.
|
||||
func WithSupport(support *SupportHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.support = support }
|
||||
}
|
||||
|
||||
// WithAssessment serves candidate-owned assessment attempts and sessions.
|
||||
func WithAssessment(assessment *AssessmentHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.assessment = assessment }
|
||||
}
|
||||
|
||||
// WithAssessmentSignals serves bounded candidate assessment event receipts.
|
||||
func WithAssessmentSignals(signals *AssessmentSignalHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.assessmentSignals = signals }
|
||||
}
|
||||
|
||||
// WithPrivacy serves current publication and candidate-card visibility operations.
|
||||
func WithPrivacy(privacy *PrivacyHandler) HandlerOption {
|
||||
return func(handler *Handler) { handler.privacy = privacy }
|
||||
}
|
||||
|
||||
func NewHandler(health *HealthHandler, problems *problem.Responder, options ...HandlerOption) *Handler {
|
||||
handler := &Handler{health: health, problems: problems}
|
||||
for _, option := range options {
|
||||
|
||||
Reference in new issue
Block a user