-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
31 lines (24 loc) · 716 Bytes
/
main.go
File metadata and controls
31 lines (24 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package main
import (
log "github.com/sirupsen/logrus"
commonAmqp "github.com/upsilonproject/upsilon-gocommon/pkg/amqp"
"github.com/upsilonproject/upsilon-custodian/internal/amqp"
"github.com/upsilonproject/upsilon-custodian/internal/snapshot"
"time"
)
func main() {
log.Infof("upsilon-custodian \033];upsilon-custodian\a")
log.SetLevel(log.DebugLevel)
commonAmqp.ConnectionIdentifier = "upsilon-custodian"
commonAmqp.AmqpHost = "upsilon"
commonAmqp.AmqpUser = "guest"
commonAmqp.AmqpPass = "guest"
commonAmqp.AmqpPort = 5672
go amqp.ListenForExecutionResults()
go amqp.ListenForHeartbeats()
go amqp.ListenForReportRequests()
go snapshot.RunForever()
for {
time.Sleep(1 * time.Second)
}
}