// New returns a new Resolver.
// ipfsReader is optional. If not provided (is nil), CIDs with IPFS hints won't be resolvable.
New returns a new Resolver.
ipfsReader is optional. If not provided (is nil), CIDs with IPFS hints won't be resolvable.
// New returns a new Resolver . // ipfsReader is optional . If not provided ( is nil ) CIDs with IPFS hints won ' t be resolvable .
func New(casClient extendedcasclient.Client, ipfsReader ipfsReader, webCASResolver WebCASResolver,
	metrics metricsProvider) *Resolver {
	return &Resolver{
		localCAS:       casClient,
		ipfsReader:     ipfsReader,
		webCASResolver: webCASResolver,
		metrics:        metrics,
		hl:             hashlink.New(),
	}
}
func New ( casClient extendedcasclient . Client , ipfsReader ipfsReader , webCASResolver WebCASResolver , metrics metricsProvider ) * Resolver { return & Resolver { localCAS : casClient , ipfsReader : ipfsReader , webCASResolver : webCASResolver , metrics : metrics , hl : hashlink . New ( ) , } }
New returns a new Resolver.
New returns a new Resolver .