Fixed updates to the fulgens server

This commit is contained in:
Arzumify 2024-10-03 17:07:49 +01:00
parent cdda34490f
commit b9bc80b8a4

View file

@ -39,7 +39,7 @@ var ServiceInformation = library.Service{
func logFunc(message string, messageType uint64, information library.ServiceInitializationInformation) { func logFunc(message string, messageType uint64, information library.ServiceInitializationInformation) {
// Log the message to the logger service // Log the message to the logger service
information.Outbox <- library.InterServiceMessage{ information.Outbox <- library.InterServiceMessage{
ServiceID: information.ServiceID, ServiceID: ServiceInformation.ServiceID,
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000002"), // Logger service ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000002"), // Logger service
MessageType: messageType, MessageType: messageType,
SentAt: time.Now(), SentAt: time.Now(),
@ -124,7 +124,7 @@ func Main(information library.ServiceInitializationInformation) {
// Initiate a connection to the database // Initiate a connection to the database
// Call service ID 1 to get the database connection information // Call service ID 1 to get the database connection information
information.Outbox <- library.InterServiceMessage{ information.Outbox <- library.InterServiceMessage{
ServiceID: information.ServiceID, ServiceID: ServiceInformation.ServiceID,
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000001"), // Service initialization service ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000001"), // Service initialization service
MessageType: 1, // Request connection information MessageType: 1, // Request connection information
SentAt: time.Now(), SentAt: time.Now(),
@ -150,7 +150,7 @@ func Main(information library.ServiceInitializationInformation) {
// Ask the authentication service for the public key // Ask the authentication service for the public key
information.Outbox <- library.InterServiceMessage{ information.Outbox <- library.InterServiceMessage{
ServiceID: information.ServiceID, ServiceID: ServiceInformation.ServiceID,
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service
MessageType: 2, // Request public key MessageType: 2, // Request public key
SentAt: time.Now(), SentAt: time.Now(),
@ -171,7 +171,7 @@ func Main(information library.ServiceInitializationInformation) {
// Ask the authentication service for its host name // Ask the authentication service for its host name
information.Outbox <- library.InterServiceMessage{ information.Outbox <- library.InterServiceMessage{
ServiceID: information.ServiceID, ServiceID: ServiceInformation.ServiceID,
ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000004"), // Authentication service
MessageType: 0, // Request host name MessageType: 0, // Request host name
SentAt: time.Now(), SentAt: time.Now(),