jsonrpc

package module
v0.0.0-...-fc4d7b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2017 License: MIT Imports: 4 Imported by: 0

README

Tast-JSONRPC Go Report Card

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(host, port string)

ListenAndServe Listen announces on the local network address and process requests

func NewClient

func NewClient(network, address string) (*rpc.Client, error)

NewClient connects to a JSON-RPC server at the specified network address.

func Register

func Register(server interface{})

Register publishes the receiver's methods in the DefaultServer.

Types

This section is empty.

Directories

Path Synopsis
client
go
Package common implements json filename load and parse
Package common implements json filename load and parse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL