code: func New(store *store.MemoryStore, pg plugingetter.PluginGetter, netConfig *cnmallocator.NetworkConfig) (*Allocator, error) {
  	a := &Allocator{
  		store: store,
  		taskBallot: &taskBallot{
  			votes: make(map[string][]string),
  		},
  		stopChan:      make(chan struct{}),
  		doneChan:      make(chan struct{}),
  		pluginGetter:  pg,
  		networkConfig: netConfig,
  	}
  
  	return a, nil
  }
docs: // New returns a new instance of Allocator for use during allocation
  // stage of the manager.