()
| 41 | } |
| 42 | |
| 43 | func NewCliRpcServer() *CliRpcServer { |
| 44 | return &CliRpcServer{ |
| 45 | handlers: make(map[string]func(req *common.CliRpcRequest, resp *common.CliRpcResponse)), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func (this *CliRpcServer) Start(address string, port uint) { |
| 50 | this.address = address |