// GetByNamespaceAndVersion returns the generator for the given namespace and version.
GetByNamespaceAndVersion returns the generator for the given namespace and version.
// GetByNamespaceAndVersion returns the generator for the given namespace and version .
func (r *Registry) GetByNamespaceAndVersion(ns string, ver uint64) (Generator, error) {
	for _, generator := range r.generators {
		if generator.Namespace() == ns && generator.Version() == ver {
			return generator, nil
		}
	}
	return nil, fmt.Errorf("generator not found for namespace [%s] and version [%d]: %w",
		ns, ver, orberrors.ErrContentNotFound)
}
func ( r * Registry ) GetByNamespaceAndVersion ( ns string , ver uint64 ) ( Generator , error ) { for _ , generator := range r . generators { if generator . Namespace ( ) == ns && generator . Version ( ) == ver { return generator , nil } } return nil , fmt . Errorf ( " " , ns , ver , orberrors . ErrContentNotFound ) }
GetByNamespaceAndVersion returns the generator for the given namespace and version.
GetByNamespaceAndVersion returns the generator for the given namespace and version .