Documentation ¶
Index ¶
- Constants
- func AsyncSendMsg(excutor taskexcutor.Excutor, data interface{}, callback CallBackMsg, ...) error
- func DelSession(id int64)
- func NewSession() int64
- func RecMsg(sId int64) interface{}
- func RecMsgWithTime(sId int64, timeout time.Duration) interface{}
- func SendMsg(excutor taskexcutor.Excutor, sessionid int64, data interface{}, ...) error
- type CallBackMsg
- type Handler
- type Msg
- type PipeMsg
- type Session
Constants ¶
View Source
const ( DEFAULT_ACCESS_TIMEOUT = 60 * time.Second RetCode_CODE_TIME_OUT int32 = 10000 )
Variables ¶
This section is empty.
Functions ¶
func AsyncSendMsg ¶
func AsyncSendMsg(excutor taskexcutor.Excutor, data interface{}, callback CallBackMsg, taskid interface{}) error
func DelSession ¶
func DelSession(id int64)
func NewSession ¶
func NewSession() int64
func RecMsgWithTime ¶
func SendMsg ¶
func SendMsg(excutor taskexcutor.Excutor, sessionid int64, data interface{}, callback CallBackMsg, taskid interface{}) error
Types ¶
type Msg ¶
type Msg struct { SessionId int64 Data interface{} CallBack CallBackMsg }
Click to show internal directories.
Click to hide internal directories.