Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handleable ¶
type Handleable interface { DataHandle(data interface{}) StopHandle() }
each message must implement this interface to handle data and stop
type Handler ¶
type Handler interface {
Handle(h Handleable)
}
each message must implement this interface to handle message
type Message ¶
type Message interface { Send() error // send message Close() // close message processing }
each message must implement this interface external interface
type MsgPriv ¶
type MsgPriv struct {
// contains filtered or unexported fields
}
private message struct The basic structure and interface of the message are implemented and could be inherited
func NewMsgPriv ¶
func NewMsgPriv() *MsgPriv
func (MsgPriv) Handle ¶
func (msg MsgPriv) Handle(h Handleable)
Click to show internal directories.
Click to hide internal directories.