MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / NodeClient

Method NodeClient

application/dependency/dependency.go:513–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511}
512
513func (d *dependency) NodeClient() inventory.NodeClient {
514 if d.nodeClient != nil {
515 return d.nodeClient
516 }
517
518 return inventory.NewNodeClient(d.DBClient())
519}
520
521func (d *dependency) NodePool(ctx context.Context) (cluster.NodePool, error) {
522 reload, _ := ctx.Value(ReloadCtx{}).(bool)

Callers 1

NodePoolMethod · 0.95

Calls 2

DBClientMethod · 0.95
NewNodeClientFunction · 0.92

Tested by

no test coverage detected