MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewClient

Function NewClient

rpc/client.go:43–45  ·  view source on GitHub ↗

NewClient returns a new Client with stream. NOTE(leventeliu): ownership of stream is passed through: io.Closer -> rpc.ClientCodec -> *rpc.Client Closing the *rpc.Client will cause io.Closer invoked.

(stream io.ReadWriteCloser)

Source from the content-addressed store, hash-verified

41// io.Closer -> rpc.ClientCodec -> *rpc.Client
42// Closing the *rpc.Client will cause io.Closer invoked.
43func NewClient(stream io.ReadWriteCloser) (client *rpc.Client) {
44 return rpc.NewClientWithCodec(utils.GetMsgPackClientCodec(stream))
45}

Callers 15

PrepareMethod · 0.92
CommitMethod · 0.92
RollbackMethod · 0.92
GetExMethod · 0.92
TestIncCounterFunction · 0.92
TestIncCounterSimpleArgsFunction · 0.92
TestETLSBugFunction · 0.92
GetMethod · 0.92
GetExMethod · 0.92
resetClientMethod · 0.92
GetExMethod · 0.85
newClientMethod · 0.85

Calls 1

GetMsgPackClientCodecFunction · 0.92

Tested by 10

PrepareMethod · 0.74
CommitMethod · 0.74
RollbackMethod · 0.74
GetExMethod · 0.74
TestIncCounterFunction · 0.74
TestIncCounterSimpleArgsFunction · 0.74
TestETLSBugFunction · 0.74
GetExMethod · 0.68
TestAcceptFuncFunction · 0.68
TestRPCComponentsFunction · 0.68