2014-04-26 09:18:56 +00:00
|
|
|
package NumGen
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
|
|
|
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
"gopkg.in/mgo.v2"
|
|
|
|
"sync"
|
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
|
|
|
var (
|
2015-06-17 15:44:52 +00:00
|
|
|
correctPassword string = ``
|
|
|
|
|
|
|
|
// This is the name for logging event from this package:
|
2014-04-26 09:18:56 +00:00
|
|
|
senderName LM.Sender = `System::NumGen::Producer`
|
|
|
|
isActive bool = false
|
|
|
|
getHandler string = ``
|
|
|
|
db *mgo.Database = nil
|
2014-06-04 19:41:18 +00:00
|
|
|
dbSession *mgo.Session = nil
|
2014-04-26 09:18:56 +00:00
|
|
|
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
|
|
|
|
)
|