Ocean/System/ICCCStart.go

15 lines
621 B
Go
Raw Normal View History

package System
import (
"github.com/SommerEngineering/Ocean/ICCC"
"github.com/SommerEngineering/Ocean/ICCC/SystemMessages"
"github.com/SommerEngineering/Ocean/Log"
LM "github.com/SommerEngineering/Ocean/Log/Meta"
)
func icccSystemStart(data map[string][]string) {
_, _, obj := ICCC.Data2Message(&SystemMessages.ICCCStartUpMessage{}, data)
messageData := obj.(*SystemMessages.ICCCStartUpMessage)
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `ICCC message: The server is now up and ready.`, messageData.PublicIPAddressAndPort, messageData.AdminIPAddressAndPort)
}