MCPcopy Create free account
hub / github.com/dearcode/candy / start

Method start

store/user.go:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (u *userDB) start() error {
42 path := fmt.Sprintf("%s/%s", u.root, util.UserDBPath)
43 log.Debugf("path:%v", path)
44 db, err := leveldb.OpenFile(path, nil)
45 if err != nil {
46 return errors.Trace(err)
47 }
48 u.db = db
49 u.friend = newFriendDB(u)
50 return nil
51}
52
53func (u *userDB) register(user, passwd string, id int64) error {
54 log.Debugf("user:%v passwd:%v", user, passwd)

Callers

nothing calls this directly

Calls 1

newFriendDBFunction · 0.85

Tested by

no test coverage detected