feat: add collaborative interview scheduling
Add candidate decisions, co-interviewer accounts, scheduled interview inbox and calendar views, candidate-safe meeting links, shared documents, and private live notes backed by RabbitMQ. Extend the disposable integration environment to validate PostgreSQL migrations, seeded users, interview lifecycle behavior, and RabbitMQ fanout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
fd06fbbb5d
commit
75e3c73a61
35 changed files with 3621 additions and 58 deletions
|
|
@ -13,6 +13,7 @@ import (
|
|||
"github.com/danyel/go-guess/backend/internal/config"
|
||||
"github.com/danyel/go-guess/backend/internal/database"
|
||||
"github.com/danyel/go-guess/backend/internal/database/repository"
|
||||
"github.com/danyel/go-guess/backend/internal/eventbus"
|
||||
"github.com/danyel/go-guess/backend/internal/security"
|
||||
"github.com/danyel/go-guess/backend/internal/service"
|
||||
"github.com/danyel/go-guess/backend/internal/web/handler"
|
||||
|
|
@ -38,8 +39,15 @@ func main() {
|
|||
defer sqlDB.Close()
|
||||
|
||||
store := repository.New(db)
|
||||
bus, err := eventbus.NewAMQPBus(cfg.RabbitMQURL)
|
||||
if err != nil {
|
||||
slog.Error("connect event bus", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer bus.Close()
|
||||
tokens := security.NewTokenManager(cfg.JWTSecret, cfg.TokenTTL)
|
||||
invitations := service.NewInvitationService(store, cfg.FrontendURL)
|
||||
interviews := service.NewScheduledInterviewService(store, bus)
|
||||
api := router.New(
|
||||
handler.New(
|
||||
service.NewAuthService(store, tokens),
|
||||
|
|
@ -47,6 +55,8 @@ func main() {
|
|||
service.NewQuestionService(store),
|
||||
service.NewParticipantService(store),
|
||||
invitations,
|
||||
service.NewUserService(store),
|
||||
interviews,
|
||||
cfg.MaxUploadMB,
|
||||
cfg.FrontendURL,
|
||||
),
|
||||
|
|
@ -55,7 +65,7 @@ func main() {
|
|||
)
|
||||
server := &http.Server{
|
||||
Addr: cfg.Address, Handler: api, ReadHeaderTimeout: 5 * time.Second,
|
||||
ReadTimeout: 15 * time.Second, WriteTimeout: 30 * time.Second, IdleTimeout: 60 * time.Second,
|
||||
ReadTimeout: 15 * time.Second, IdleTimeout: 60 * time.Second,
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue