mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-21 00:47:22 +08:00
14 lines
277 B
Go
14 lines
277 B
Go
package coreapi
|
|
|
|
import (
|
|
cid "github.com/ipfs/go-cid"
|
|
)
|
|
|
|
// ProviderAPI brings Provider behavior to CoreAPI
|
|
type ProviderAPI CoreAPI
|
|
|
|
// Provide the given cid using the current provider
|
|
func (api *ProviderAPI) Provide(cid cid.Cid) error {
|
|
return api.provider.Provide(cid)
|
|
}
|