Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandldFunc ¶
type HandleWrapper ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Forward ¶
func (r *Router) Forward(rpcName string, handleFunc HandleWrapper)
func (*Router) RegisterService ¶
func (r *Router) RegisterService(srvDesc *ServiceDesc, srvImpl interface{}) error
register service
type ServiceDesc ¶
type ServiceDesc struct { // like serviceName.serviceMethod Name string Type interface{} Method map[string]*MethodDesc Stream map[string]*StreamDesc }
service description
Click to show internal directories.
Click to hide internal directories.