Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentEventMsg ¶
func (*ComponentEventMsg) GetSender ¶
func (this *ComponentEventMsg) GetSender() interface{}
func (*ComponentEventMsg) GetType ¶
func (this *ComponentEventMsg) GetType() EventType
func (*ComponentEventMsg) Reset ¶
func (this *ComponentEventMsg) Reset()
type ComponentID ¶
type ComponentID = component.ComponentID
type DataEventMsg ¶
type DataEventMsg struct {
MsgType EventType
Sender Agent
TypeID ProtoTypeID
MsgData interface{}
}
func (*DataEventMsg) GetSender ¶
func (this *DataEventMsg) GetSender() Agent
func (*DataEventMsg) GetType ¶
func (this *DataEventMsg) GetType() EventType
func (*DataEventMsg) Reset ¶
func (this *DataEventMsg) Reset()
type EventQueue ¶
type EventQueue struct {
// contains filtered or unexported fields
}
func NewEventQueue ¶
func NewEventQueue() *EventQueue
func (*EventQueue) Get ¶
func (this *EventQueue) Get(event_list []interface{}, count uint32) uint32
func (*EventQueue) Push ¶
func (this *EventQueue) Push(event EventMsg)
func (*EventQueue) SemaChan ¶
func (this *EventQueue) SemaChan() EventChan
func (*EventQueue) WaitNotify ¶
func (this *EventQueue) WaitNotify() bool
func (*EventQueue) WaiterWake ¶
func (this *EventQueue) WaiterWake()
type EventReceiver ¶
type EventReceiver interface {
PostEvent(EventType, Agent, ComponentID)
PostData(EventType, ProtoTypeID, Agent, interface{})
PushEventMsg(ev EventMsg)
}
type ProtoTypeID ¶
type ProtoTypeID = agent.ProtoTypeID
type RpcEventMsg ¶
func (*RpcEventMsg) GetSender ¶
func (this *RpcEventMsg) GetSender() Agent
func (*RpcEventMsg) GetType ¶
func (this *RpcEventMsg) GetType() EventType
func (*RpcEventMsg) Reset ¶
func (this *RpcEventMsg) Reset()
type SessionEventMsg ¶
type SessionEventMsg struct {
MsgType EventType
Sender Agent
Cid ComponentID
}
func (*SessionEventMsg) GetSender ¶
func (this *SessionEventMsg) GetSender() Agent
func (*SessionEventMsg) GetType ¶
func (this *SessionEventMsg) GetType() EventType
func (*SessionEventMsg) Reset ¶
func (this *SessionEventMsg) Reset()
Click to show internal directories.
Click to hide internal directories.