Documentation
¶
Index ¶
- Constants
- func NewEventPlugin() *eventPlugin
- type OnAccept
- func (that *OnAccept) Abort(abort bool)
- func (that *OnAccept) Data() map[interface{}]interface{}
- func (that *OnAccept) Get(_ interface{}) interface{}
- func (that *OnAccept) IsAborted() bool
- func (that *OnAccept) Name() string
- func (that *OnAccept) Set(_ interface{}, _ interface{})
- func (that *OnAccept) SetData(_ map[interface{}]interface{}) eventbus.IEvent
- type OnClose
- func (that *OnClose) Abort(abort bool)
- func (that *OnClose) Data() map[interface{}]interface{}
- func (that *OnClose) Get(_ interface{}) interface{}
- func (that *OnClose) IsAborted() bool
- func (that *OnClose) Name() string
- func (that *OnClose) Set(_ interface{}, _ interface{})
- func (that *OnClose) SetData(_ map[interface{}]interface{}) eventbus.IEvent
- type OnConnect
- func (that *OnConnect) Abort(abort bool)
- func (that *OnConnect) Data() map[interface{}]interface{}
- func (that *OnConnect) Get(_ interface{}) interface{}
- func (that *OnConnect) IsAborted() bool
- func (that *OnConnect) Name() string
- func (that *OnConnect) Set(_ interface{}, _ interface{})
- func (that *OnConnect) SetData(_ map[interface{}]interface{}) eventbus.IEvent
- type OnReceive
- func (that *OnReceive) Abort(abort bool)
- func (that *OnReceive) Data() map[interface{}]interface{}
- func (that *OnReceive) Get(_ interface{}) interface{}
- func (that *OnReceive) IsAborted() bool
- func (that *OnReceive) Name() string
- func (that *OnReceive) Set(_ interface{}, _ interface{})
- func (that *OnReceive) SetData(_ map[interface{}]interface{}) eventbus.IEvent
Constants ¶
View Source
const ( OnAcceptEvent = "endpoint_accept" OnReceiveEvent = "endpoint_receive" OnConnectEvent = "endpoint_connect" OnCloseEvent = "endpoint_close" )
Variables ¶
This section is empty.
Functions ¶
func NewEventPlugin ¶
func NewEventPlugin() *eventPlugin
Types ¶
type OnAccept ¶
type OnAccept struct { Session drpc.EarlySession // contains filtered or unexported fields }
type OnClose ¶
type OnClose struct { Session drpc.BaseSession // contains filtered or unexported fields }
type OnConnect ¶
type OnConnect struct { Session drpc.EarlySession IsSuccess bool Err error IsRedial bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.