MCPcopy Create free account
hub / github.com/beeker1121/goque / getDataKey

Method getDataKey

prefix_queue.go:415–419  ·  view source on GitHub ↗

getDataKey generates the main prefix queue data key.

()

Source from the content-addressed store, hash-verified

413
414// getDataKey generates the main prefix queue data key.
415func (pq *PrefixQueue) getDataKey() []byte {
416 var key []byte
417 key = append(key, prefixDelimiter)
418 return append(key, []byte(":main_data")...)
419}
420
421// getItemByPrefixID returns an item, if found, for the given prefix and ID.
422func (pq *PrefixQueue) getItemByPrefixID(prefix []byte, id uint64) (*Item, error) {

Callers 2

saveMethod · 0.95
initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected