offline.go 315 Bytes
Newer Older
1 2 3 4
package provider

import "github.com/ipfs/go-cid"

5
type offlineProvider struct{}
6

7
// NewOfflineProvider creates a Provider that does nothing
8 9 10 11 12 13 14 15 16
func NewOfflineProvider() Provider {
	return &offlineProvider{}
}

func (op *offlineProvider) Run() {}

func (op *offlineProvider) Provide(cid cid.Cid) error {
	return nil
}