Versions in this module Expand all Collapse all v1 v1.5.0 Aug 14, 2020 Changes in this version + func PointToLineProtocol(p *Point, precision time.Duration) string + func PointToLineProtocolBuffer(p *Point, sb *strings.Builder, precision time.Duration) + type Options struct + func DefaultOptions() *Options + func (o *Options) AddDefaultTag(key, value string) *Options + func (o *Options) BatchSize() uint + func (o *Options) DefaultTags() map[string]string + func (o *Options) FlushInterval() uint + func (o *Options) MaxRetries() uint + func (o *Options) MaxRetryInterval() 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) SetFlushInterval(flushIntervalMs uint) *Options + func (o *Options) SetMaxRetries(maxRetries uint) *Options + func (o *Options) SetMaxRetryInterval(maxRetryIntervalMs 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) SetUseGZip(useGZip bool) *Options + func (o *Options) UseGZip() bool + type Point struct + func NewPoint(measurement string, tags map[string]string, fields map[string]interface{}, ...) *Point + func NewPointWithMeasurement(measurement string) *Point + func (m *Point) AddField(k string, v interface{}) *Point + func (m *Point) AddTag(k, v string) *Point + func (m *Point) FieldList() []*lp.Field + func (m *Point) Name() string + func (m *Point) SetTime(timestamp time.Time) *Point + func (m *Point) SortFields() *Point + func (m *Point) SortTags() *Point + func (m *Point) TagList() []*lp.Tag + func (m *Point) Time() time.Time