Documentation ¶
Index ¶
Constants ¶
View Source
const EventCall = "__EventCall"
Variables ¶
View Source
var (
ErrorIsClosed = errors.New("closed")
)
Functions ¶
This section is empty.
Types ¶
type CallBackFunc ¶
func (CallBackFunc) DataEvent ¶
func (f CallBackFunc) DataEvent(e IEvent) error
type CallBackHandler ¶
type DataDispatchCenter ¶
type DataDispatchCenter struct {
// contains filtered or unexported fields
}
DataDispatchCenter 数据广播中心
func (*DataDispatchCenter) Close ¶
func (d *DataDispatchCenter) Close() error
func (*DataDispatchCenter) Listener ¶
func (d *DataDispatchCenter) Listener() IListener
func (*DataDispatchCenter) Register ¶
func (d *DataDispatchCenter) Register(handlerFunc CallBackFunc) (closeChan chan<- int)
func (*DataDispatchCenter) Send ¶
func (d *DataDispatchCenter) Send(e IEvent)
type IDispatchCenter ¶
type IDispatchCenter interface { io.Closer Register(handler CallBackFunc) (closeChan chan<- int) Listener() IListener Send(e IEvent) }
func NewDataDispatchCenter ¶
func NewDataDispatchCenter() IDispatchCenter
func NewEventDispatchCenter ¶
func NewEventDispatchCenter() IDispatchCenter
Click to show internal directories.
Click to hide internal directories.