// ResolveDocumentFromResolutionEndpoints resolved document from resolution endpoints.
ResolveDocumentFromResolutionEndpoints resolved document from resolution endpoints.
// ResolveDocumentFromResolutionEndpoints resolved document from resolution endpoints .
func (rr *Resolver) ResolveDocumentFromResolutionEndpoints(id string, endpoints []string) (*document.ResolutionResult, error) { 
	if len(endpoints) == 0 {
		return nil, fmt.Errorf("must provide at least one remote resolver endpoint in order to retrieve data")
	}
	var errMsgs []string
	for _, endpoint := range endpoints {
		rr, err := rr.resolveDocumentFromEndpoint(id, endpoint)
		if err != nil {
			errMsgs = append(errMsgs, err.Error())
			continue
		}
		return rr, nil
	}
	return nil, fmt.Errorf("%s", errMsgs)
}
func ( rr * Resolver ) ResolveDocumentFromResolutionEndpoints ( id string , endpoints [ ] string ) ( * document . ResolutionResult , error ) { if len ( endpoints ) == 0 { return nil , fmt . Errorf ( " " ) } var errMsgs [ ] string for _ , endpoint := range endpoints { rr , err := rr . resolveDocumentFromEndpoint ( id , endpoint ) if err != nil { errMsgs = append ( errMsgs , err . Error ( ) ) continue } return rr , nil } return nil , fmt . Errorf ( " " , errMsgs ) }
ResolveDocumentFromResolutionEndpoints resolved document from resolution endpoints.
ResolveDocumentFromResolutionEndpoints resolved document from resolution endpoints .
//nolint:lll