Giter VIP home page Giter VIP logo

brpcweb's Introduction

brpcweb

Go Report Card Go Releases Godoc Go Reference LICENSE Codeac

brpcweb是专为baidurpc开发一套在线管理控制台,提供在线的服务管理功能。 想了解baidu rpc项目,请查看:[https://github.com/baidu-golang/pbrpc]

overview picture

pic/main.png

Usage

Installing

To start using timewheel, install Go and run go get:

$ go get github.com/jhunters/brpcweb

Start server

Change to your install directory.

./brpcweb

Or Build from source

$ 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

More screenshot

pic/rpcdetail.png

pic/rpcmethods.png

pic/qps.png

Embed web module into your baidu-rpc server

    // 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() // 

more advance usage to publish web server with the same port of rpc server

demo/rpcserver-with-web.go

License

brpcweb is Apache 2.0 licensed.

brpcweb's People

Contributors

jhunters avatar jiritichy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.