MCPcopy
hub / github.com/apache/answer / Open

Method Open

internal/router/ui.go:66–70  ·  view source on GitHub ↗

Open to implement the interface by http.FS required

(name string)

Source from the content-addressed store, hash-verified

64
65// Open to implement the interface by http.FS required
66func (r *_resource) Open(name string) (fs.File, error) {
67 name = fmt.Sprintf(UIStaticPath+"/%s", name)
68 log.Debugf("open static path %s", name)
69 return r.fs.Open(name)
70}
71
72// Register a new static resource which generated by ui directory
73func (a *UIRouter) Register(r *gin.Engine, baseURLPath string) {

Callers 5

initDatabaseImageFunction · 0.45
decodeAndCheckImageFileFunction · 0.45
uploadImageFileMethod · 0.45
copyDirEntriesFunction · 0.45
initDatabaseImageFunction · 0.45

Calls

no outgoing calls

Tested by 2

initDatabaseImageFunction · 0.36
initDatabaseImageFunction · 0.36