MCPcopy
hub / github.com/TarsCloud/TarsGo / hashKey

Method hashKey

tars/communicator.go:146–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (c *Communicator) hashKey() string {
147 hash := md5.New()
148 hashKeys := []string{"locator", "enableset", "setdivision"}
149 for _, k := range hashKeys {
150 if v, ok := c.properties.Load(k); ok {
151 hash.Write([]byte(fmt.Sprintf("%v:%v", k, v)))
152 }
153 }
154 return hex.EncodeToString(hash.Sum(nil))
155}

Callers 1

GetManagerFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected