Documentation
¶
Overview ¶
Package jsonrpc はRPCパッケージのためのJSON-RPC 1.0のClientCodecとServerCodecを実装します。 JSON-RPC 2.0のサポートについては、 https://godoc.org/?q=json-rpc+2.0 を参照してください。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(conn io.ReadWriteCloser) *rpc.Client
NewClientは、接続先の一連のサービスへのリクエストを処理する新しいrpc.Clientを返します。
func NewClientCodec ¶
func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
NewClientCodecは、conn上でJSON-RPCを使用して新しいrpc.ClientCodecを返します。
func NewServerCodec ¶
func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
NewServerCodecはconn上でJSON-RPCを使用する新しいrpc.ServerCodecを返します。
func ServeConn ¶
func ServeConn(conn io.ReadWriteCloser)
ServeConnは単一の接続でJSON-RPCサーバーを実行します。 ServeConnはブロックし、クライアントが切断するまで接続を処理します。 呼び出し元は通常、goステートメントでServeConnを呼び出します。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.