func WithTLSConfig(config *tls.Config) StoreOption {
	return func(s *influxDB) {
		s.config.TLSConfig = config
	}
}
WithTLSConfig sets TLS configuration for an https client
package influxdb
import (
	"crypto/tls"
	"net/http"
	"net/url"
	"time"
)
type Option func(*Exporter)
func WithStore(s Store) Option {
	return func(e *Exporter) {
		if s != nil {
			e.store = s
		}
	}
}
func WithErrorHandler(h func(error)) Option {
	return func(e *Exporter) {
		if h != nil {
			e.errorHandler = h
		}
	}
}
func WithTags(tags map[string]string) Option {
	return func(e *Exporter) {
		if len(tags) > 0 {
			if len(e.customTags) == 0 {
				e.customTags = tags
				return
			}
			for k, v := range tags {
				e.customTags[k] = v
			}
		}
	}
}
type StoreOption func(*influxDB)
func WithDatabase(db string) StoreOption {
	return func(s *influxDB) {
		if db != "" {
			s.database = db
		}
	}
}
func WithAddr(addr string) StoreOption {
	return func(s *influxDB) {
		if addr != "" {
			s.config.Addr = addr
		}
	}
}
func WithUser(user string) StoreOption {
	return func(s *influxDB) {
		s.config.Username = user
	}
}
func WithPassword(pwd string) StoreOption {
	return func(s *influxDB) {
		s.config.Password = pwd
	}
}
func WithInsecureSkipVerify(skip bool) StoreOption {
	return func(s *influxDB) {
		s.config.InsecureSkipVerify = skip
	}
}
func WithTimeout(d time.Duration) StoreOption {
	return func(s *influxDB) {
		s.config.Timeout = d
	}
}