Add documentation

This commit is contained in:
Thorsten Sommer committed 2015-06-17 17:44:52 +02:00
1 parent 69d0bdabf4
commit 6dab89a1d4
144 files changed
+1107 -549

No files matched your search

+2
View File
@@ -9,9 +9,11 @@ import (
"strings"
)
// Init this package.
func init() {
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Init the number generator.`)
// Get the exklusive access to the channel list:
channelListLock.Lock()
defer channelListLock.Unlock()
+3 -2
View File
@@ -1,6 +1,7 @@
package NumGen
// The scheme for the database.
type NumberGenScheme struct {
Name string `bson:"Name"`
NextFreeNumber int64 `bson:"NextFreeNumber"`
Name string `bson:"Name"` // A name for this counter.
NextFreeNumber int64 `bson:"NextFreeNumber"` // The next number.
}
+3 -1
View File
@@ -7,7 +7,9 @@ import (
)
var (
correctPassword string = ``
correctPassword string = ``
// This is the name for logging event from this package:
senderName LM.Sender = `System::NumGen::Producer`
isActive bool = false
getHandler string = ``