jsonrpc

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

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 Dial

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

Dialは指定されたネットワークアドレスのJSON-RPCサーバに接続します。

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.

Jump to

Keyboard shortcuts

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