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

Method Set

framework/module/module_specific_data.go:48–56  ·  view source on GitHub ↗
(m Module, perInstance bool, value interface{})

Source from the content-addressed store, hash-verified

46}
47
48func (msd *ModSpecificData) Set(m Module, perInstance bool, value interface{}) {
49 key := msd.modKey(m, perInstance)
50 msd.modDataLck.Lock()
51 defer msd.modDataLck.Unlock()
52 if msd.modData == nil {
53 msd.modData = make(map[string]interface{})
54 }
55 msd.modData[key] = value
56}
57
58func (msd *ModSpecificData) Get(m Module, perInstance bool) interface{} {
59 key := msd.modKey(m, perInstance)

Callers

nothing calls this directly

Calls 1

modKeyMethod · 0.95

Tested by

no test coverage detected