code: func NewClient(index int, conf *ClientConfig) (*Client, error) {
  	httpClient, err := config_util.NewClientFromConfig(conf.HTTPClientConfig, "remote_storage")
  	if err != nil {
  		return nil, err
  	}
  
  	return &Client{
  		index:   index,
  		url:     conf.URL,
  		client:  httpClient,
  		timeout: time.Duration(conf.Timeout),
  	}, nil
  }
docs: // NewClient creates a new Client.