MCPcopy
hub / github.com/dragonflyoss/dragonfly / Pool

Interface Pool

pkg/rpc/dfdaemon/client/client_v2.go:44–53  ·  view source on GitHub ↗

Pool is the interface for pooling v2 version of the grpc client.

Source from the content-addressed store, hash-verified

42
43// Pool is the interface for pooling v2 version of the grpc client.
44type Pool interface {
45 // Serve starts the manager.
46 Serve()
47
48 // Stop stops the manager.
49 Stop()
50
51 // Get returns the client by address.
52 Get(target string, opts ...grpc.DialOption) (V2, error)
53}
54
55// pool is the pool for managing v2 version of the dfdaemon client.
56type pool struct {

Callers 1

ServeMethod · 0.65

Implementers 5

MockDynconfigInterfacescheduler/config/mocks/dynconfig_mock.
MockDynconfigInterfaceMockRecorderscheduler/config/mocks/dynconfig_mock.
poolpkg/rpc/dfdaemon/client/client_v2.go
MockPoolpkg/rpc/dfdaemon/client/mocks/client_v
MockPoolMockRecorderpkg/rpc/dfdaemon/client/mocks/client_v

Calls

no outgoing calls

Tested by

no test coverage detected