modulepackage
0.0.0-20210730135302-66cb45a7fd88
Repository: https://github.com/c0mm4nd/go-jsonrpc2.git
Documentation: pkg.go.dev
# README
go-jsonrpc2
fast jsonrpc 2.0 implement for go
spec: https://www.jsonrpc.org/specification
Usage
If you wanna using jsonrpc2 over http, check the http folder
If you wanna using jsonrpc2 over tcp, check the tcp folder
# Packages
Package jsonrpc2http provides http implement of [jsonrpc2](https://godoc.org/github.com/c0mm4nd/go-jsonrpc2), the fast jsonrpc 2.0 message encoding and decoding based on jsoniter
Visit repo https://godoc.org/github.com/c0mm4nd/go-jsonrpc2 and get example.
Package jsonrpc2net provides net(tcp, udp) implement of [jsonrpc2](https://godoc.org/github.com/c0mm4nd/go-jsonrpc2), the fast jsonrpc 2.0 message encoding and decoding
Visit repo https://godoc.org/github.com/c0mm4nd/go-jsonrpc2 and get example.
Package jsonrpc2ws provides websocket implement of [jsonrpc2](https://godoc.org/github.com/c0mm4nd/go-jsonrpc2), the fast jsonrpc 2.0 message encoding and decoding Visit repo https://godoc.org/github.com/c0mm4nd/go-jsonrpc2 and get example.
# Functions
IsBatchMarshal is a helper to check whether the rawbytes are from a jsonrpc message batch.
No description provided by the author
if is built-in errors, code can be 0 or any.
NewJsonRpcError returns a JSON-RPC 2.0 error message structures.
No description provided by the author
NewJsonRpcNotification returns a JSON-RPC 2.0 notification message structures which doesnt have id.
NewJsonRpcRequest returns a JSON-RPC 2.0 request message structures.
NewJsonRpcSuccess returns a JSON-RPC 2.0 success message structures.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
some built-in errors.
some built-in errors.
some built-in errors.
some built-in errors.
some built-in errors.
JSON is the json parser inside the jsonrpc2, developers can change parser via assign another (un)marshaller into this symbol.
# Type aliases
No description provided by the author
No description provided by the author