Versions in this module Expand all Collapse all v2 v2.5.4 Nov 24, 2021 Changes in this version + const Version + func DefaultDialect() *domain.Dialect + func NewPoint(measurement string, tags map[string]string, fields map[string]interface{}, ...) *write.Point + func NewPointWithMeasurement(measurement string) *write.Point + type Client interface + AuthorizationsAPI func() api.AuthorizationsAPI + BucketsAPI func() api.BucketsAPI + Close func() + DeleteAPI func() api.DeleteAPI + HTTPService func() http.Service + Health func(ctx context.Context) (*domain.HealthCheck, error) + LabelsAPI func() api.LabelsAPI + Options func() *Options + OrganizationsAPI func() api.OrganizationsAPI + Ping func(ctx context.Context) (bool, error) + QueryAPI func(org string) api.QueryAPI + Ready func(ctx context.Context) (*domain.Ready, error) + ServerURL func() string + Setup func(ctx context.Context, username, password, org, bucket string, ...) (*domain.OnboardingResponse, error) + TasksAPI func() api.TasksAPI + UsersAPI func() api.UsersAPI + WriteAPI func(org, bucket string) api.WriteAPI + WriteAPIBlocking func(org, bucket string) api.WriteAPIBlocking + func NewClient(serverURL string, authToken string) Client + func NewClientWithOptions(serverURL string, authToken string, options *Options) Client + type Options struct + func DefaultOptions() *Options + func (o *Options) AddDefaultTag(key, value string) *Options + func (o *Options) BatchSize() uint + func (o *Options) ExponentialBase() uint + func (o *Options) FlushInterval() uint + func (o *Options) HTTPClient() *nethttp.Client + func (o *Options) HTTPOptions() *http.Options + func (o *Options) HTTPRequestTimeout() uint + func (o *Options) LogLevel() uint + func (o *Options) MaxRetries() uint + func (o *Options) MaxRetryInterval() uint + func (o *Options) MaxRetryTime() uint + func (o *Options) Precision() time.Duration + func (o *Options) RetryBufferLimit() uint + func (o *Options) RetryInterval() uint + func (o *Options) SetBatchSize(batchSize uint) *Options + func (o *Options) SetExponentialBase(exponentialBase uint) *Options + func (o *Options) SetFlushInterval(flushIntervalMs uint) *Options + func (o *Options) SetHTTPClient(c *nethttp.Client) *Options + func (o *Options) SetHTTPRequestTimeout(httpRequestTimeout uint) *Options + func (o *Options) SetLogLevel(logLevel uint) *Options + func (o *Options) SetMaxRetries(maxRetries uint) *Options + func (o *Options) SetMaxRetryInterval(maxRetryIntervalMs uint) *Options + func (o *Options) SetMaxRetryTime(maxRetryTimeMs uint) *Options + func (o *Options) SetPrecision(precision time.Duration) *Options + func (o *Options) SetRetryBufferLimit(retryBufferLimit uint) *Options + func (o *Options) SetRetryInterval(retryIntervalMs uint) *Options + func (o *Options) SetTLSConfig(tlsConfig *tls.Config) *Options + func (o *Options) SetUseGZip(useGZip bool) *Options + func (o *Options) TLSConfig() *tls.Config + func (o *Options) UseGZip() bool + func (o *Options) WriteOptions() *write.Options