MCPcopy
hub / github.com/mxpv/podsync / getKey

Method getKey

pkg/db/badger.go:264–269  ·  view source on GitHub ↗
(format string, a ...interface{})

Source from the content-addressed store, hash-verified

262}
263
264func (b *Badger) getKey(format string, a ...interface{}) []byte {
265 resourcePath := fmt.Sprintf(format, a...)
266 fullPath := fmt.Sprintf("podsync/v%d/%s", CurrentVersion, resourcePath)
267
268 return []byte(fullPath)
269}
270
271func (b *Badger) setObj(txn *badger.Txn, key []byte, obj interface{}, overwrite bool) error {
272 if !overwrite {

Callers 8

AddFeedMethod · 0.95
GetFeedMethod · 0.95
WalkFeedsMethod · 0.95
DeleteFeedMethod · 0.95
GetEpisodeMethod · 0.95
UpdateEpisodeMethod · 0.95
DeleteEpisodeMethod · 0.95
walkEpisodesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected