Documentation ¶
Index ¶
- type Server
- func (srv *Server) GetOpenID() string
- func (srv *Server) GetRequestMsg() interface{}
- func (srv *Server) GetResponseMsg() interface{}
- func (srv *Server) Send() (err error)
- func (srv *Server) Serve() error
- func (srv *Server) SetMessageHandler(handler func(message.MixMessage) *message.Reply)
- func (srv *Server) Validate() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server struct
func (*Server) GetRequestMsg ¶
func (srv *Server) GetRequestMsg() interface{}
GetRequestMsg return requestMsg
func (*Server) GetResponseMsg ¶
func (srv *Server) GetResponseMsg() interface{}
GetResponseMsg return responseMsg
func (*Server) SetMessageHandler ¶
func (srv *Server) SetMessageHandler(handler func(message.MixMessage) *message.Reply)
SetMessageHandler 设置用户自定义的回调方法
Click to show internal directories.
Click to hide internal directories.