MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / UpdateUserUsableGroupsByJSONString

Function UpdateUserUsableGroupsByJSONString

setting/user_usable_group.go:37–43  ·  view source on GitHub ↗
(jsonStr string)

Source from the content-addressed store, hash-verified

35}
36
37func UpdateUserUsableGroupsByJSONString(jsonStr string) error {
38 userUsableGroupsMutex.Lock()
39 defer userUsableGroupsMutex.Unlock()
40
41 userUsableGroups = make(map[string]string)
42 return json.Unmarshal([]byte(jsonStr), &userUsableGroups)
43}
44
45func GetUserUsableGroups(userGroup string) map[string]string {
46 groupsCopy := GetUserUsableGroupsCopy()

Callers 1

updateOptionMapFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected