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 don't suggest method like GET,because you can use other http web framework to build a restful api with not by roc roc support POST,DELETE,PUT,GET,OPTIONS for compatible rrRouter ,witch request response way because ServeHTTP api need support json or proto data protocol suggest just use POST,PUT for your roc service
Click to show internal directories.
Click to hide internal directories.