Documentation ¶
Index ¶
Constants ¶
View Source
const ( XVersion = "X-RPCX-Version" XMessageType = "X-RPCX-MesssageType" XHeartbeat = "X-RPCX-Heartbeat" XOneway = "X-RPCX-Oneway" XMessageStatusType = "X-RPCX-MessageStatusType" XSerializeType = "X-RPCX-SerializeType" XMessageID = "X-RPCX-MessageID" XServicePath = "X-RPCX-ServicePath" XServiceMethod = "X-RPCX-ServiceMethod" XMeta = "X-RPCX-Meta" XErrorMessage = "X-RPCX-ErrorMessage" )
Variables ¶
This section is empty.
Functions ¶
func CreateServiceDiscovery ¶
func CreateServiceDiscovery(basePath, addr string) (client.ServiceDiscovery, error)
Types ¶
type Gateway ¶
type Gateway struct { FailMode client.FailMode SelectMode client.SelectMode Option client.Option // contains filtered or unexported fields }
func NewGateway ¶
func NewGateway(base string, srv HTTPServer, dis client.ServiceDiscovery, failMode client.FailMode, selectMode client.SelectMode, option client.Option) *Gateway
type HTTPServer ¶
type HTTPServer interface { RegisterHandler(base string, handler ServiceHandler) Serve() error }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterHandler ¶
func (s *Server) RegisterHandler(base string, handler ServiceHandler)
Click to show internal directories.
Click to hide internal directories.