code: func EndpointTypeGetter(name string, getter TypeGetter) NamedTypeGetter {
  	return NamedTypeGetter{
  		name:       name,
  		typeGetter: getter,
  	}
  }
docs: // EndpointTypeGetter returns a NamedTypeGetter with the spcecified name and getter