communicate/communicate.go
jackdaw fa5772c240 .
2016-11-28 15:00:12 +09:00

27 lines
343 B
Go

package communicate
import (
"fmt"
"loafle.com/commons/communicate/events"
)
var _c *communicator = nil
func init() {
fmt.Println("init communicator")
_c = NewCommunicator()
_c.start()
}
func SetRootURL(url string) {
_c.RootURL = url
}
func GetRootURL() string {
return _c.RootURL
}
func Send(e *events.Event) {
_c.addEvent(e)
}