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

Method ServerStaticFS

application/dependency/dependency.go:315–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315func (d *dependency) ServerStaticFS() static.ServeFileSystem {
316 if d.serverStaticFS != nil {
317 return d.serverStaticFS
318 }
319
320 sfs, err := statics.NewServerStaticFS(d.Logger(), d.Statics(), d.isPro)
321 if err != nil {
322 d.panicError(err)
323 }
324
325 d.serverStaticFS = sfs
326 return d.serverStaticFS
327}
328
329func (d *dependency) DBClient() *ent.Client {
330 if d.dbClient != nil {

Callers

nothing calls this directly

Calls 4

LoggerMethod · 0.95
StaticsMethod · 0.95
panicErrorMethod · 0.95
NewServerStaticFSFunction · 0.92

Tested by

no test coverage detected