INNER CODE UNIT · Go

readFromContextToPathMapping

danielfoehrKn/kubeswitch · pkg/main.go:321

func readFromContextToPathMapping(key string) string {
	contextToPathMappingLock.RLock()
	defer contextToPathMappingLock.RUnlock()
	return contextToPathMapping[key]
}

func writeToContextToPathMapping(key, value string) {
	contextToPathMappingLock.Lock()
	defer contextToPathMappingLock.Unlock()
	contextToPathMapping[key] = value
}

func readFromPathToTagsMapping(key string) map[string]string {
	pathToTagsMappingLock.RLock()
	defer pathToTagsMappingLock.RUnlock()
	return pathToTagsMapping[key]
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…