{"id":18274313,"url":"https://github.com/dizoftteam/jsonrpc_server","last_synced_at":"2026-05-18T10:34:33.963Z","repository":{"id":135181185,"uuid":"262745210","full_name":"DizoftTeam/jsonrpc_server","owner":"DizoftTeam","description":"Go JSONRpc Server 2.0","archived":false,"fork":false,"pushed_at":"2023-08-10T15:19:45.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T06:40:46.727Z","etag":null,"topics":["go","json","jsonrpc-server","jsonrpc2"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/DizoftTeam/jsonrpc_server?tab=doc","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/DizoftTeam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-10T08:41:04.000Z","updated_at":"2023-02-04T10:15:27.000Z","dependencies_parsed_at":"2024-06-20T17:28:53.847Z","dependency_job_id":"09db629f-fbc3-469f-9a85-f5be63a345ca","html_url":"https://github.com/DizoftTeam/jsonrpc_server","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/DizoftTeam/jsonrpc_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fjsonrpc_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fjsonrpc_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fjsonrpc_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fjsonrpc_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DizoftTeam","download_url":"https://codeload.github.com/DizoftTeam/jsonrpc_server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DizoftTeam%2Fjsonrpc_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013886,"owners_count":26085325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","json","jsonrpc-server","jsonrpc2"],"created_at":"2024-11-05T12:09:13.025Z","updated_at":"2025-10-13T01:20:57.995Z","avatar_url":"https://github.com/DizoftTeam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go JsonRpc Server\n\n[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/DizoftTeam/jsonrpc_server.svg)](https://github.com/DizoftTeam/jsonrpc_server)\n[![GitHub tag](https://img.shields.io/github/tag/DizoftTeam/jsonrpc_server.svg)](https://GitHub.com/DizoftTeam/jsonrpc_server/tags/)\n\n[![GitHub stars](https://img.shields.io/github/stars/DizoftTeam/jsonrpc_server.svg?style=social\u0026label=Star\u0026maxAge=2592000)](https://GitHub.com/DizoftTeam/jsonrpc_server/stargazers/)\n[![GitHub issues](https://img.shields.io/github/issues/DizoftTeam/jsonrpc_server.svg)](https://GitHub.com/DizoftTeam/jsonrpc_server/issues/)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n[![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/)\n\nBase implementation of JSONRpc v2.0 in Go\n\n## Breaking changes of v2\n\n### HttpHandler\n\nCause: add new handler\n\n\u003e Old\n\nhttp.HandleFunc(\"/\", jsonrpc.Handler)\n\n\u003e New\n\nhttp.HandleFunc(\"/\", jsonrpc.HttpHandler)\n\n## How to get\n\nUse follow command\n\n```bash\ngo get github.com/DizoftTeam/jsonrpc_server\n```\n\n## Example\n\nCommand example below\n\n```go\npackage main\n\nimport (\n    jsonrpc \"github.com/DizoftTeam/jsonrpc_server\"\n\n    \"fmt\"\n    \"log\"\n    \"net/http\"\n)\n\n// UserLogin controller for login method\ntype UserLogin struct {}\n\n// Handler worker\nfunc (u UserLogin) Handler(params interface{}) (interface{}, *jsonrpc.RPCError) {\n    // Some logic/magic here.\n    // It's like a controller\n    \n    // To getting raw request you can run this\n    // session := jsonrpc.NewSession()\n\n    // Success\n    return \"Login ok!\", nil \n\n    // Fail\n    //return nil, \u0026jsonrpc.RPCError{\n    //    Code: -10,\n    //    Message: \"Cant login\",\n    //}\n}\n\n// Register methods and callbacks\nfunc registerMethods() {\n    jsonrpc.Register(\"user.login\", UserLogin{})\n\n    jsonrpc.RegisterFunc(\"version\", func(params interface{}) (interface{}, *jsonrpc.RPCError) {\n        return \"1.0.0\", nil\n    })\n}\n\nfunc main() {\n    registerMethods()\n\n    http.HandleFunc(\"/\", jsonrpc.HttpHandler)\n\n    log.Print(\"\\nStarting server at :8089\\n\")\n\n    if err := http.ListenAndServe(\":8089\", nil); err != nil {\n      log.Panic(\"Cant start server\", err)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizoftteam%2Fjsonrpc_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdizoftteam%2Fjsonrpc_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdizoftteam%2Fjsonrpc_server/lists"}