brpcweb是专为baidurpc开发一套在线管理控制台,提供在线的服务管理功能。 想了解baidu rpc项目,请查看:[https://github.com/baidu-golang/pbrpc]
To start using timewheel, install Go and run go get
:
$ go get github.com/jhunters/brpcweb
Change to your install directory.
./brpcweb
$ git clone https://github.com/jhunters/brpcweb.git
$ cd brpcweb
$ go build main.go
$ ./main -http=:1031
Open your browser and visit http://localhost:1031
// param1 listen address
// param2 reqeust prefix path
// database file store path
module, err := web.NewWebModule(":8080", "/", "./data")
if err != nil {
fmt.Println(err)
return
}
defer module.Close()
// add a rpc server from API
module.AddRPCServer("本地", "localhost", *port)
module.StartWeb() //
brpcweb is Apache 2.0 licensed.