Fixed broken imports, made storage not send raw ISMs
Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
f7a1ecccdb
commit
1e106bb4ca
2
main.go
2
main.go
|
@ -2,13 +2,13 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
library "git.ailur.dev/ailur/fg-library/v3"
|
library "git.ailur.dev/ailur/fg-library/v3"
|
||||||
"os/signal"
|
|
||||||
|
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"mime"
|
"mime"
|
||||||
"os"
|
"os"
|
||||||
|
"os/signal"
|
||||||
"plugin"
|
"plugin"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
library "git.ailur.dev/ailur/fg-library/v3"
|
library "git.ailur.dev/ailur/fg-library/v3"
|
||||||
nucleusLibrary "git.ailur.dev/ailur/fg-nucleus-library"
|
nucleusLibrary "git.ailur.dev/ailur/fg-nucleus-library"
|
||||||
|
|
||||||
"errors"
|
"bytes"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
|
||||||
|
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
"errors"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
@ -216,13 +215,7 @@ func modifyFile(information *library.ServiceInitializationInformation, message l
|
||||||
}
|
}
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
information.Outbox <- library.InterServiceMessage{
|
message.Respond(library.Success, nil, information)
|
||||||
ServiceID: ServiceInformation.ServiceID,
|
|
||||||
ForServiceID: message.ServiceID,
|
|
||||||
MessageType: 0,
|
|
||||||
SentAt: time.Now(),
|
|
||||||
Message: nil,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getFile(information *library.ServiceInitializationInformation, message library.InterServiceMessage) {
|
func getFile(information *library.ServiceInitializationInformation, message library.InterServiceMessage) {
|
||||||
|
@ -243,13 +236,7 @@ func getFile(information *library.ServiceInitializationInformation, message libr
|
||||||
|
|
||||||
// Respond with the file
|
// Respond with the file
|
||||||
// It's their responsibility to close the file
|
// It's their responsibility to close the file
|
||||||
information.Outbox <- library.InterServiceMessage{
|
message.Respond(library.Success, file, information)
|
||||||
ServiceID: ServiceInformation.ServiceID,
|
|
||||||
ForServiceID: message.ServiceID,
|
|
||||||
MessageType: 0,
|
|
||||||
SentAt: time.Now(),
|
|
||||||
Message: file,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func deleteFile(information *library.ServiceInitializationInformation, message library.InterServiceMessage) {
|
func deleteFile(information *library.ServiceInitializationInformation, message library.InterServiceMessage) {
|
||||||
|
@ -269,13 +256,7 @@ func deleteFile(information *library.ServiceInitializationInformation, message l
|
||||||
}
|
}
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
information.Outbox <- library.InterServiceMessage{
|
message.Respond(library.Success, nil, information)
|
||||||
ServiceID: ServiceInformation.ServiceID,
|
|
||||||
ForServiceID: message.ServiceID,
|
|
||||||
MessageType: 0,
|
|
||||||
SentAt: time.Now(),
|
|
||||||
Message: nil,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// processInterServiceMessages listens for incoming messages and processes them
|
// processInterServiceMessages listens for incoming messages and processes them
|
||||||
|
|
Loading…
Reference in New Issue