Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(port int, serviceInfos ...ServiceInfo) error
Types ¶
type MethodInfo ¶
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func (*RpcClient) SendReq ¶
func (client *RpcClient) SendReq(request *common.RpcRequest) (resp *common.RpcResponse, err error)
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func (*RpcServer) Registry ¶
func (s *RpcServer) Registry(sr ServiceInfo)
type ServiceInfo ¶
type ServiceInfo struct { Name string Value reflect.Value Methods map[string]*MethodInfo }
Click to show internal directories.
Click to hide internal directories.