Versions in this module Expand all Collapse all v1 v1.2.0 Sep 12, 2019 Changes in this version + var Module = module.Module + type CompressionSelector = codec.CompressionSelector + type RPC struct + func NewRPC() *RPC + func (s *RPC) AddCodec(codec codec.Interface, mime string) + func (s *RPC) AddMethod(name string, fn interface{}) error + func (s *RPC) ServeHTTP(w http.ResponseWriter, r *http.Request) v1.1.0 Sep 27, 2016 Changes in this version + type Codec interface + NewRequest func(*http.Request) CodecRequest + type CodecRequest interface + Method func() (string, error) + ReadRequest func(interface{}) error + WriteResponse func(http.ResponseWriter, interface{}, error) error + type RequestInfo struct + Error error + Method string + Request *http.Request + StatusCode int + type Server struct + func NewServer() *Server + func (s *Server) HasMethod(method string) bool + func (s *Server) RegisterAfterFunc(f func(i *RequestInfo)) + func (s *Server) RegisterBeforeFunc(f func(i *RequestInfo)) + func (s *Server) RegisterCodec(codec Codec, contentType string) + func (s *Server) RegisterInterceptFunc(f func(i *RequestInfo) *http.Request) + func (s *Server) RegisterService(receiver interface{}, name string) error + func (s *Server) RegisterTCPService(receiver interface{}, name string) error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)