Documentation ¶
Index ¶
- Constants
- func IsReservedName(name string) bool
- func QuoteField(f gopi.Field) (string, error)
- func QuoteFieldName(f gopi.Field) string
- func QuoteFieldValue(f gopi.Field) string
- func QuoteFields(fields []gopi.Field) (string, error)
- func QuoteMeasurement(m gopi.Measurement) (string, error)
- type Writer
- func (this *Writer) Credentials() (string, string)
- func (this *Writer) Database() string
- func (this *Writer) Define(cfg gopi.Config) error
- func (this *Writer) Dispose() error
- func (this *Writer) Endpoint() *url.URL
- func (this *Writer) New(cfg gopi.Config) error
- func (this *Writer) Ping() (time.Duration, error)
- func (this *Writer) Run(ctx context.Context) error
- func (this *Writer) String() string
- func (this *Writer) Write(metrics ...gopi.Measurement) error
Constants ¶
View Source
const ( DefaultScheme = "http" DefaultEndpoint = DefaultScheme + "://localhost/metrics" DefaultPort = 8086 EnvUsername = "INFLUX_USERNAME" EnvPassword = "INFLUX_PASSWORD" )
Variables ¶
This section is empty.
Functions ¶
func IsReservedName ¶
func QuoteField ¶
func QuoteFieldName ¶
func QuoteFieldName(f gopi.Field) string
QuoteFieldName returns quoted version of the name, returning empty string if invalid
func QuoteFieldValue ¶
func QuoteFieldValue(f gopi.Field) string
QuoteFieldName returns quoted version of the value, returning empty string if invalid or nil
func QuoteFields ¶
func QuoteMeasurement ¶
QuoteMeasurement returns a line for a measurement
Types ¶
Click to show internal directories.
Click to hide internal directories.