logger, compiler logic, sse endpoints

This commit is contained in:
Maximilian Wagner
2025-12-25 20:05:33 +01:00
parent d9f7ead467
commit 891ebe0107
8 changed files with 110 additions and 26 deletions

37
globals/memory.go Normal file
View File

@@ -0,0 +1,37 @@
package globals
import (
"os"
"sync"
)
type Config struct {
// general
LogLevel string `json:"logLevel"`
LogFilePath string `json:"logFilePath"`
// latex
LatexEngine string `json:"latexEngine"`
LatexSourceFilePath string `json:"latexSourceFilePath"`
LatexOutputPath string `json:"latexOutputPath"`
// webserver
WebserverDomain string `json:"webserverDomain"`
WebserverSecure bool `json:"webserverSecure"`
CertificatePath string `json:"certificatePath"`
CertificateKeyPath string `json:"certificateKeyPath"`
Timezone string `json:"timezone"`
}
var AppConfig Config
type LatexExecution struct {
ExecutionLock sync.Mutex
ExecutionState string
Timestamp string
Output []byte
}
var LatexExec LatexExecution
var LogFile *os.File