logger, compiler logic, sse endpoints
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package globals
|
||||
|
||||
import "sync"
|
||||
import (
|
||||
"os"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
// general
|
||||
@@ -17,9 +20,18 @@ type Config struct {
|
||||
WebserverSecure bool `json:"webserverSecure"`
|
||||
CertificatePath string `json:"certificatePath"`
|
||||
CertificateKeyPath string `json:"certificateKeyPath"`
|
||||
|
||||
// to prevent competing compiles, not actual configuration
|
||||
ExecutionLock sync.Mutex
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user