Client wraps a JSON RPC method and provides a method that implements endpoint.Endpoint.
| 15 | |
| 16 | // Client wraps a JSON RPC method and provides a method that implements endpoint.Endpoint. |
| 17 | type Client struct { |
| 18 | client httptransport.HTTPClient |
| 19 | |
| 20 | // JSON RPC endpoint URL |
| 21 | tgt *url.URL |
| 22 | |
| 23 | // JSON RPC method name. |
| 24 | method string |
| 25 | |
| 26 | enc EncodeRequestFunc |
| 27 | dec DecodeResponseFunc |
| 28 | before []httptransport.RequestFunc |
| 29 | after []httptransport.ClientResponseFunc |
| 30 | finalizer httptransport.ClientFinalizerFunc |
| 31 | requestID RequestIDGenerator |
| 32 | bufferedStream bool |
| 33 | } |
| 34 | |
| 35 | type clientRequest struct { |
| 36 | JSONRPC string `json:"jsonrpc"` |
nothing calls this directly
no outgoing calls
no test coverage detected