MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / WithFileClient

Function WithFileClient

application/dependency/options.go:150–154  ·  view source on GitHub ↗

WithFileClient Set the default file client

(s inventory.FileClient)

Source from the content-addressed store, hash-verified

148
149// WithFileClient Set the default file client
150func WithFileClient(s inventory.FileClient) Option {
151 return optionFunc(func(o *dependency) {
152 o.fileClient = s
153 })
154}
155
156// WithShareClient Set the default share client
157func WithShareClient(s inventory.ShareClient) Option {

Callers

nothing calls this directly

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected