communicate/communicate.go
2016-11-28 14:13:15 +09:00

19 lines
243 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 Send(e *events.Event) {
_c.addEvent(e)
}