support out-of-chain reference protection

This commit is contained in:
vyzo
2021-07-20 09:02:40 +03:00
parent 1c30d07d68
commit ebbaf23af8
8 changed files with 89 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
package dtypes
import (
cid "github.com/ipfs/go-cid"
)
type GCReferenceProtector interface {
AddProtector(func(func(cid.Cid) error) error)
}
type NoopGCReferenceProtector struct{}
func (p NoopGCReferenceProtector) AddProtector(func(func(cid.Cid) error) error) {}