// NewResolveHandler returns a new document resolve handler.
NewResolveHandler returns a new document resolve handler.
// NewResolveHandler returns a new document resolve handler .
func NewResolveHandler(namespace string, resolver coreResolver, discovery discoveryService,
	domain string, endpointClient endpointClient, remoteResolver remoteResolver,
	anchorGraph common.AnchorGraph, metrics metricsProvider, opts ...Option) *ResolveHandler {
	rh := &ResolveHandler{
		namespace:        namespace,
		coreResolver:     resolver,
		discoveryService: discovery,
		domain:           domain,
		endpointClient:   endpointClient,
		remoteResolver:   remoteResolver,
		anchorGraph:      anchorGraph,
		metrics:          metrics,
		hl:               hashlink.New(),
	}
	for _, opt := range opts {
		opt(rh)
	}
	return rh
}
func NewResolveHandler ( namespace string , resolver coreResolver , discovery discoveryService , domain string , endpointClient endpointClient , remoteResolver remoteResolver , anchorGraph common . AnchorGraph , metrics metricsProvider , opts ... Option ) * ResolveHandler { rh := & ResolveHandler { namespace : namespace , coreResolver : resolver , discoveryService : discovery , domain : domain , endpointClient : endpointClient , remoteResolver : remoteResolver , anchorGraph : anchorGraph , metrics : metrics , hl : hashlink . New ( ) , } for _ , opt := range opts { opt ( rh ) } return rh }
NewResolveHandler returns a new document resolve handler.
NewResolveHandler returns a new document resolve handler .
// apply options