package
module
Version:
v0.0.0-...-fc4d7b3
Opens a new window with list of versions in this module.
Published: Dec 28, 2017
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Tast-JSONRPC
The Go language implementation of jsonrpc framework. Support PHP、Golang、Java、Python client .
Architecture
Tast-JSONRPC contains four roles : RPC Server, RPC Client, Registry and Admin console.
-
RPC Server registers services on the Registry
-
RPC Client select a server from the server list returned from the Registry.
-
Registry manage server node list(register、remove、health check、Load balancing etc.)
-
Admin console as a role of service governance(run、stop server、modify weight etc.)
Features
- Based on net/rpc 、net/rpc/jsonrpc
- Cross-language client support (Golang、Java、PHP、Python)
- Data layer(now support mysql master-slave architecture)
- Service dicovery (based on redis)
- Server Healthcheck
- Load banlancer (now support RoundRobin)
- Scalable
- Service governance
- ...
Server
visit this
Client
Registry Server
visit this
Admin Console
Link: https://github.com/xujiajun/jsonrpc-admin
Screenshot
License
The Tast-JSONRPC is open-sourced software licensed under the MIT Licensed
Documentation
¶
func ListenAndServe(host, port string)
ListenAndServe Listen announces on the local network address and process requests
NewClient connects to a JSON-RPC server at the specified network address.
func Register(server interface{})
Register publishes the receiver's methods in the DefaultServer.
Source Files
¶
Directories
¶
client
|
|
|
|
Package common implements json filename load and parse
|
Package common implements json filename load and parse |
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.