Documentation
¶
Index ¶
- type Server
- func (s *Server) Close()
- func (s *Server) RegisterChannelHandler(method string, rs handler.ChannelHandler)
- func (s *Server) RegisterHandler(method string, rr handler.Handler)
- func (s *Server) RegisterStreamHandler(method string, rs handler.StreamHandler)
- func (s *Server) Run()
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterChannelHandler ¶
func (s *Server) RegisterChannelHandler(method string, rs handler.ChannelHandler)
func (*Server) RegisterHandler ¶
func (*Server) RegisterStreamHandler ¶
func (s *Server) RegisterStreamHandler(method string, rs handler.StreamHandler)
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
roc not support method GET OPTIONS,because you can use other http web framework to build a restful api roc support POST,DELETE,PUT for compatible rrRouter ,witch request response way because ServeHTTP api need support json or proto data protocol
Click to show internal directories.
Click to hide internal directories.