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

Method Contains

proto/nodeinfo.go:291–298  ·  view source on GitHub ↗

Contains returns if given role is in the ServerRoles>.

(role ServerRole)

Source from the content-addressed store, hash-verified

289
290// Contains returns if given role is in the ServerRoles>.
291func (ss *ServerRoles) Contains(role ServerRole) bool {
292 for _, s := range *ss {
293 if s == role {
294 return true
295 }
296 }
297 return false
298}

Callers 15

WaitBPDatabaseCreationFunction · 0.80
runPeerListUpdaterFunction · 0.80
syncHeadMethod · 0.80
GetNeighborsExMethod · 0.80
TestServerRoles_ContainsFunction · 0.80
convertQueryAndBuildArgsFunction · 0.80
WaitBPChainServiceFunction · 0.80
showTokenBalanceFunction · 0.80
showAllTokenBalanceFunction · 0.80
showAllDatabaseDepositFunction · 0.80
runGenerateFunction · 0.80
detectColumnTypeMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestServerRoles_ContainsFunction · 0.64
TestDHTService_PingFunction · 0.64
TestNewPersistentCallerFunction · 0.64