ipld-eth-server/vendor/github.com/ipfs/go-ipfs/provider/offline.go

21 lines
373 B
Go

package provider
import "github.com/ipfs/go-cid"
type offlineProvider struct{}
// NewOfflineProvider creates a Provider that does nothing
func NewOfflineProvider() Provider {
return &offlineProvider{}
}
func (op *offlineProvider) Run() {}
func (op *offlineProvider) Provide(cid cid.Cid) error {
return nil
}
func (op *offlineProvider) Close() error {
return nil
}