Documentation ¶
Index ¶
- type Server
- func (srv *Server) GetOpenID() string
- func (srv *Server) GetQuery(key string) (string, bool)
- func (srv *Server) Query(key string) string
- func (srv *Server) Render(bytes []byte)
- func (srv *Server) Send() (err error)
- func (srv *Server) Serve() error
- func (srv *Server) SetMessageHandler(handler func(message.MixMessage) *message.Reply)
- func (srv *Server) SkipValidate(skip bool)
- func (srv *Server) String(str string)
- func (srv *Server) Validate() bool
- func (srv *Server) XML(obj interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *context.Context Writer http.ResponseWriter Request *http.Request RequestRawXMLMsg []byte RequestMsg message.MixMessage ResponseRawXMLMsg []byte ResponseMsg interface{} // contains filtered or unexported fields }
Server struct
func (*Server) SetMessageHandler ¶
func (srv *Server) SetMessageHandler(handler func(message.MixMessage) *message.Reply)
SetMessageHandler 设置用户自定义的回调方法
func (*Server) SkipValidate ¶
SkipValidate set skip validate
Click to show internal directories.
Click to hide internal directories.