MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / ReadUserData

Function ReadUserData

src/internal/authentication/authentication.go:324–341  ·  view source on GitHub ↗

ReadUserData : load user date

(userID string)

Source from the content-addressed store, hash-verified

322
323// ReadUserData : load user date
324func ReadUserData(userID string) (userData map[string]interface{}, err error) {
325
326 err = checkInit()
327 if err != nil {
328 return
329 }
330
331 err = createError(031)
332
333 if v, ok := data["users"].(map[string]interface{})[userID].(map[string]interface{}); ok {
334 userData = v["data"].(map[string]interface{})
335 err = nil
336
337 return
338 }
339
340 return
341}
342
343// RemoveUser : remove user
344func RemoveUser(userID string) (err error) {

Callers 1

checkAuthorizationLevelFunction · 0.92

Calls 2

checkInitFunction · 0.85
createErrorFunction · 0.85

Tested by

no test coverage detected