Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotRunning = errors.New("client has stopped")
)
View Source
var SessionId = _gen_session_id()
Functions ¶
This section is empty.
Types ¶
type BaseHandler ¶
type BaseHandler struct {
*Session
}
type ClientHander ¶
type ClientHander struct { BaseHandler // contains filtered or unexported fields }
func (*ClientHander) OnRecv ¶
func (s *ClientHander) OnRecv(msg *actor_msg.ActorMessage)
func (*ClientHander) OnSessionClosed ¶
func (s *ClientHander) OnSessionClosed()
func (*ClientHander) OnSessionCreated ¶
func (s *ClientHander) OnSessionCreated()
type Handler ¶
type Handler interface { OnRecv(*actor_msg.ActorMessage) OnSessionCreated() OnSessionClosed() // contains filtered or unexported methods }
type Stream ¶
type Stream interface { Send(*actor_msg.ActorMessage) error Recv() (*actor_msg.ActorMessage, error) }
Click to show internal directories.
Click to hide internal directories.