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

Interface NOClientPool

rpc/utils.go:35–39  ·  view source on GitHub ↗

NOClientPool defines the node-oriented client pool interface.

Source from the content-addressed store, hash-verified

33
34// NOClientPool defines the node-oriented client pool interface.
35type NOClientPool interface {
36 Get(remote proto.NodeID) (Client, error)
37 GetEx(remote proto.NodeID, isAnonymous bool) (Client, error)
38 Close() error
39}
40
41// DialToNodeWithPool ties use connection in pool, if fails then connects to the node with nodeID.
42func DialToNodeWithPool(pool NOClientPool, nodeID proto.NodeID, isAnonymous bool) (Client, error) {

Callers 3

DialToNodeWithPoolFunction · 0.65
recordRPCCostFunction · 0.65
DialToNodeWithPoolFunction · 0.65

Implementers 4

nilPoolrpc/xxx_test.go
ClientPoolrpc/pool.go
nilSessionPoolrpc/mux/server_test.go
SessionPoolrpc/mux/pool.go

Calls

no outgoing calls

Tested by

no test coverage detected