Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
Encoder represents a component that encapsulates a target environment for measurement submissions, as given by hostname and receiving writer.
func NewEncoder ¶
NewEncoder creates a new encoder that writes to the given io.Writer.
func NewEncoderWithHostname ¶
NewEncoderWithHostname creates a new encoder that writes to the given io.Writer with an overridden hostname
func (*Encoder) Encode ¶
Encode writes the line protocol representation for a given measurement name, data struct and tag map to the io.Writer specified on encoder creation.
func (*Encoder) EncodeMap ¶
EncodeMap writes the line protocol representation for a given measurement name, field value map and tag map to the io.Writer specified on encoder creation.
func (*Encoder) EncodeWithoutTypes ¶
EncodeWithoutTypes writes the line protocol representation for a given measurement name, data struct and tag map to the io.Writer specified on encoder creation. In contrast to Encode(), this method never appends type suffixes to values.