7120a729bd
+ DB access is now right and uses copied sessions + DB session is now specifying the safe state and the mode + Fixed the issue with too early ICCC messages regarding to late cache + Add the MIME type for Dart + Fixed the issuse with wrong order of shutdown handlers - TODO: Testing of these changes
24 lines
743 B
Go
24 lines
743 B
Go
package NumGen
|
|
|
|
import "sync"
|
|
import "labix.org/v2/mgo"
|
|
import LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
var (
|
|
correctPassword string = ``
|
|
senderName LM.Sender = `System::NumGen::Producer`
|
|
isActive bool = false
|
|
getHandler string = ``
|
|
db *mgo.Database = nil
|
|
dbSession *mgo.Session = nil
|
|
collectionNumGen *mgo.Collection = nil
|
|
channelBufferSize int = 10
|
|
channelList map[string]chan int64 = nil
|
|
channelListLock sync.RWMutex = sync.RWMutex{}
|
|
)
|
|
|
|
const (
|
|
badNumber64 int64 = 9222222222222222222
|
|
startValue64 int64 = -9223372036854775808
|
|
)
|