code: func newEndpointImpl(socketPath, resourceName string, callback monitorCallback) (*endpointImpl, error) {
  	client, c, err := dial(socketPath)
  	if err != nil {
  		klog.Errorf("Can't create new endpoint with path %s err %v", socketPath, err)
  		return nil, err
  	}
  
  	return &endpointImpl{
  		client:     client,
  		clientConn: c,
  
  		socketPath:   socketPath,
  		resourceName: resourceName,
  
  		cb: callback,
  	}, nil
  }
docs: // newEndpointImpl creates a new endpoint for the given resourceName.
  // This is to be used during normal device plugin registration.