3348e552cc
+ Removed the fixed shutdown time + Added the configuration for the public web server + Refactored the old web server settings + Improved the handling of shutdown handlers. It is not save! + Bugfix: The server start was no longer blocking
29 lines
1.1 KiB
Go
29 lines
1.1 KiB
Go
package Log
|
|
|
|
import (
|
|
"container/list"
|
|
"github.com/SommerEngineering/Ocean/Log/Meta"
|
|
"sync"
|
|
)
|
|
|
|
var (
|
|
entriesBuffer chan Meta.Entry = nil
|
|
schedulerExitSignal chan bool = nil
|
|
logBufferSize int = 500
|
|
logBufferTimeoutSeconds int = 4
|
|
logDeviceDelayNumberEvents int = 600
|
|
logDeviceDelayTimeoutSeconds int = 5
|
|
channelReady bool = false
|
|
preChannelBufferUsed bool = false
|
|
preChannelBuffer *list.List = nil
|
|
deviceDelayBuffer *list.List = nil
|
|
devices *list.List = nil
|
|
mutexDeviceDelays sync.Mutex = sync.Mutex{}
|
|
mutexPreChannelBuffer sync.Mutex = sync.Mutex{}
|
|
mutexChannel sync.RWMutex = sync.RWMutex{}
|
|
mutexDevices sync.RWMutex = sync.RWMutex{}
|
|
timerIsRunning bool = false
|
|
projectName string = `not set`
|
|
senderName Meta.Sender = `System::Log`
|
|
)
|