MCPcopy
hub / github.com/go-kit/kit / Client

Struct Client

transport/http/jsonrpc/client.go:17–33  ·  view source on GitHub ↗

Client wraps a JSON RPC method and provides a method that implements endpoint.Endpoint.

Source from the content-addressed store, hash-verified

15
16// Client wraps a JSON RPC method and provides a method that implements endpoint.Endpoint.
17type 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
35type clientRequest struct {
36 JSONRPC string `json:"jsonrpc"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected