MCPcopy Index your code
hub / github.com/dearcode/candy / loadGroupList

Method loadGroupList

gate/store.go:137–145  ·  view source on GitHub ↗
(userID int64)

Source from the content-addressed store, hash-verified

135}
136
137func (s *store) loadGroupList(userID int64) ([]*meta.GroupInfo, error) {
138 req := &meta.StoreLoadGroupListRequest{User: userID}
139 resp, err := s.api.LoadGroupList(s.ctx, req)
140 if err != nil {
141 return nil, errors.Trace(err)
142 }
143
144 return resp.Groups, errors.Trace(resp.Header.Error())
145}
146
147func (s *store) uploadFile(userID int64, data []byte) error {
148 log.Debugf("store UploadFile, userID:%v", userID)

Callers 1

LoadGroupListMethod · 0.80

Calls 2

LoadGroupListMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected