MCPcopy Create free account
hub / github.com/deepflowio/deepflow / AddRegion

Method AddRegion

server/controller/recorder/cache/tool/data_set.go:264–268  ·  view source on GitHub ↗
(item *metadbmodel.Region)

Source from the content-addressed store, hash-verified

262}
263
264func (t *DataSet) AddRegion(item *metadbmodel.Region) {
265 t.regionLcuuidToID[item.Lcuuid] = item.ID
266 t.regionIDToLcuuid[item.ID] = item.Lcuuid
267 t.GetLogFunc()(addToToolMap(ctrlrcommon.RESOURCE_TYPE_REGION_EN, item.Lcuuid), t.metadata.LogPrefixes)
268}
269
270func (t *DataSet) DeleteRegion(lcuuid string) {
271 delete(t.regionLcuuidToID, lcuuid)

Callers 2

GetRegionIDByLcuuidMethod · 0.95
GetRegionLcuuidByIDMethod · 0.95

Calls 2

addToToolMapFunction · 0.85
GetLogFuncMethod · 0.45

Tested by

no test coverage detected