MCPcopy Index your code
hub / github.com/foxcpp/maddy / NewFile

Function NewFile

internal/table/file.go:54–64  ·  view source on GitHub ↗
(c *container.C, modName, instName string)

Source from the content-addressed store, hash-verified

52}
53
54func NewFile(c *container.C, modName, instName string) (module.Module, error) {
55 m := &File{
56 instName: instName,
57 m: make(map[string][]string),
58 stopReloader: make(chan struct{}),
59 forceReload: make(chan struct{}),
60 log: c.DefaultLogger.Sublogger(modName),
61 }
62
63 return m, nil
64}
65
66func (f *File) Name() string {
67 return FileModName

Callers 3

TestFileReloadFunction · 0.85
TestFileReload_BrokenFunction · 0.85
TestFileReload_RemovedFunction · 0.85

Calls 1

SubloggerMethod · 0.80

Tested by 3

TestFileReloadFunction · 0.68
TestFileReload_BrokenFunction · 0.68
TestFileReload_RemovedFunction · 0.68