f33f7b5c29
+ Refactored all imports + Fixed a bug for the logging regarding removing \n \t \r + Updated to current MGO release + Changed the name of ICCC
23 lines
696 B
Go
23 lines
696 B
Go
package ICCC
|
|
|
|
import (
|
|
"container/list"
|
|
"github.com/SommerEngineering/Ocean/Log"
|
|
LM "github.com/SommerEngineering/Ocean/Log/Meta"
|
|
"github.com/SommerEngineering/Ocean/Tools"
|
|
)
|
|
|
|
func init() {
|
|
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameINIT, `Start init of ICCC.`)
|
|
defer Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameINIT, `Done init ICCC.`)
|
|
|
|
cacheListenerDatabase = list.New()
|
|
listeners = make(map[string]func(data map[string][]string))
|
|
|
|
// Using the local IP address and NOT the configuration "OceanHostnameAndPort":
|
|
correctAddressWithPort = Tools.LocalIPAddressAndPort()
|
|
|
|
initDB()
|
|
registerHost2Database()
|
|
}
|