github.com/storacha/go-ucanto@v0.7.2/core/delegation/store.go (about) 1 package delegation 2 3 import ( 4 "context" 5 6 "github.com/storacha/go-ucanto/core/ipld" 7 ) 8 9 // Store is storage for delegations. 10 type Store interface { 11 Put(ctx context.Context, delegation Delegation) error 12 // Get a delegation by CID. 13 Get(ctx context.Context, root ipld.Link) (Delegation, bool, error) 14 }