MCPcopy Create free account
hub / github.com/corestoreio/pkg / Register

Function Register

util/hashpool/register.go:92–101  ·  view source on GitHub ↗

Register registers a new hash function in the global map. Returns an error behaviour of AlreadyExists if you try to register the same name twice. Safe for concurrent use.

(name string, hh func() hash.Hash)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestRegisterDeregisterFunction · 0.85
TestFromRegistryHMACFunction · 0.85

Calls 4

hash64TypeAlias · 0.85
makeHtValFunction · 0.85
writeStrMethod · 0.80
LockMethod · 0.80

Tested by 2

TestRegisterDeregisterFunction · 0.68
TestFromRegistryHMACFunction · 0.68