jsonrpc

package
v1.21.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 2 Imported by: 0

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 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