MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / GetMainAccount

Function GetMainAccount

cmd/cql-proxy/model/developer.go:176–189  ·  view source on GitHub ↗

GetMainAccount fetches the main account/keypair object of developer.

(db *gorp.DbMap, developerID int64)

Source from the content-addressed store, hash-verified

174
175// GetMainAccount fetches the main account/keypair object of developer.
176func GetMainAccount(db *gorp.DbMap, developerID int64) (p *DeveloperPrivateKey, err error) {
177 d, err := GetDeveloper(db, developerID)
178 if err != nil {
179 return
180 }
181
182 p, err = GetAccountByID(db, developerID, d.MainAccount)
183 if err != nil {
184 p = nil
185 return
186 }
187
188 return
189}

Callers 9

applyTokenFunction · 0.92
getBalanceFunction · 0.92
createDBFunction · 0.92
topUpFunction · 0.92
databaseBalanceFunction · 0.92
databaseListFunction · 0.92
getProjectsFunction · 0.92
createProjectFunction · 0.92
listTasksFunction · 0.92

Calls 2

GetDeveloperFunction · 0.85
GetAccountByIDFunction · 0.85

Tested by

no test coverage detected