{"id":20000130,"url":"https://github.com/rb-go/go-jrpc2client","last_synced_at":"2026-01-12T06:33:18.425Z","repository":{"id":57485931,"uuid":"144051812","full_name":"rb-go/go-jrpc2client","owner":"rb-go","description":"Golang JSON-RPC 2.0 client package based on erikdubbelboer/fasthttp","archived":false,"fork":false,"pushed_at":"2019-03-15T14:10:41.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-14T05:01:55.198Z","etag":null,"topics":["fasthttp","ffjson","golang","json","json-rpc-client","json-rpc2","json-rpc2-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rb-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-08T18:18:41.000Z","updated_at":"2022-06-06T15:47:58.000Z","dependencies_parsed_at":"2022-09-11T20:41:54.411Z","dependency_job_id":null,"html_url":"https://github.com/rb-go/go-jrpc2client","commit_stats":null,"previous_names":["riftbit/jrpc2client"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rb-go/go-jrpc2client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-go%2Fgo-jrpc2client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-go%2Fgo-jrpc2client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-go%2Fgo-jrpc2client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-go%2Fgo-jrpc2client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rb-go","download_url":"https://codeload.github.com/rb-go/go-jrpc2client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb-go%2Fgo-jrpc2client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fasthttp","ffjson","golang","json","json-rpc-client","json-rpc2","json-rpc2-client"],"created_at":"2024-11-13T05:13:53.212Z","updated_at":"2026-01-12T06:33:18.410Z","avatar_url":"https://github.com/rb-go.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# GoLang jrpc2client (early beta)\n\n[Website](https://riftbit.com) | [Blog](https://ergoz.ru/)\n\n[![license](https://img.shields.io/github/license/riftbit/jrpc2client.svg)](LICENSE)\n[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/riftbit/jrpc2client)\n[![Coverage Status](https://coveralls.io/repos/github/riftbit/jrpc2client/badge.svg?branch=master)](https://coveralls.io/github/riftbit/jrpc2client?branch=master)\n[![Build Status](https://travis-ci.org/riftbit/jrpc2client.svg?branch=master)](https://travis-ci.org/riftbit/jrpc2client)\n[![Go Report Card](https://goreportcard.com/badge/github.com/riftbit/jrpc2client)](https://goreportcard.com/report/github.com/riftbit/jrpc2client)\n\nThis is a json-rpc 2.0 client package for golang based on:\n\n - **HTTP Client:** [erikdubbelboer/fasthttp](github.com/erikdubbelboer/fasthttp)\n - **JSON Parser:** [pquerna/ffjson](github.com/pquerna/ffjson/ffjson)\n - **Logger:** [Sirupsen/logrus](github.com/sirupsen/logrus)\n - **Errors:** [riftbit/jrpc2errors](github.com/riftbit/jrpc2errors)\n\nto get high perfomance\n\nThis package is still in development\n\n## Examples\n\n### Without custom logger settings\n\n```golang\npackage main\n\nimport (\n\t\"github.com/riftbit/jrpc2client\"\n)\n\ntype TestReply struct {\n\tLogID string `json:\"log_id\"`\n}\n\nfunc main() {\n\tclient := jrpc2client.NewClient()\n\n\tclient.SetBaseURL(\"http://127.0.0.1:65001\")\n\tclient.SetUserAgent(\"JsonRPC Test Client\")\n\tclient.SetBasicAuth(\"user\", \"password\")\n\n\tdstT := \u0026TestReply{}\n\terr := client.Call(\"/api\", \"demo.Test\", TestArgs{ID: \"TESTER_ID_1\"}, dstT)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tprintln(dstT.LogID)\n}\n```\n\n\n### With custom logger settings\n\n```golang\npackage main\n\nimport (\n\t\"github.com/riftbit/jrpc2client\"\n)\n\ntype TestReply struct {\n\tLogID string `json:\"log_id\"`\n}\n\nfunc main() {\n\tlogger := \u0026logrus.Logger{\n    \t\tOut:       os.Stdout,\n    \t\tFormatter: \u0026logrus.JSONFormatter{DisableTimestamp: false},\n    \t\tLevel:     logrus.DebugLevel,\n    }\n\n    client := jrpc2client.NewClientWithLogger(logger)\n\n    client.SetBaseURL(\"http://127.0.0.1:65001\")\n    client.SetUserAgent(\"JsonRPC Test Client\")\n    client.SetBasicAuth(\"user\", \"password\")\n\n    dstT := \u0026TestReply{}\n    err := client.Call(\"/api\", \"demo.Test\", TestArgs{ID: \"TESTER_ID_3\"}, dstT)\n    if err != nil {\n    \t\tpanic(err)\n    }\n    println(dstT.LogID)\n}\n```\n\n\n## Benchmark results\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb-go%2Fgo-jrpc2client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frb-go%2Fgo-jrpc2client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb-go%2Fgo-jrpc2client/lists"}