1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-21 00:47:22 +08:00
Files
kubo/core/coreapi/provider.go
Michael Avila dde397ebc1 Refactor per code climate rules
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-03-11 09:55:13 -07:00

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)
}