Add basic test queue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-23 22:39:04 +01:00
parent 5f301ce32a
commit dd56145418
6 changed files with 253 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"serverctl/pkg/api"
"serverctl/pkg/infrastructure"
"serverctl/pkg/infrastructure/dependencies"
"serverctl/pkg/infrastructure/queue"
)
// Run main app, will bootstrap dependencies and run all external ports (http servers, queues, etc).
@@ -11,6 +12,12 @@ func Run() {
d := dependencies.New()
d.Logger.Info("Starting serverctl")
queue.NewRabbitMQ(d.Logger, &queue.RabbitMqConfig{
Username: "serverctl",
Password: "serverctlsecret",
Host: "rabbitmq",
Port: 5672,
})
// if development add seed data
infrastructure.AddSeedData(d.Database, d.Logger)