Documentation ¶
Index ¶
Constants ¶
View Source
const Tpl = `
// object -> byte array
function execute(message){
if (message.data) {
return message.data;
} else {
return {};
}
}
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageLogicHandler ¶
type MessageLogicHandler interface {
OnData(msg model.LinkMessage) model.LinkMessage
}
收到业务数据后执行
func New ¶
func New(logicScript string) MessageLogicHandler
Click to show internal directories.
Click to hide internal directories.