Versions in this module Expand all Collapse all v0 v0.0.1 Dec 21, 2022 Changes in this version + type Graphite struct + DisableLog bool + Host string + Port int + Prefix string + Protocol string + Timeout time.Duration + func GraphiteFactory(protocol string, host string, port int, prefix string) (*Graphite, error) + func NewGraphite(host string, port int) (*Graphite, error) + func NewGraphiteNop(host string, port int) *Graphite + func NewGraphiteUDP(host string, port int) (*Graphite, error) + func NewGraphiteWithMetricPrefix(host string, port int, prefix string) (*Graphite, error) + func (graphite *Graphite) Connect() error + func (graphite *Graphite) Disconnect() error + func (graphite *Graphite) IsNop() bool + func (graphite *Graphite) SendMetric(metric Metric) error + func (graphite *Graphite) SendMetrics(metrics []Metric) error + func (graphite *Graphite) SimpleSend(stat string, value string) error + type Metric struct + Name string + Tags map[string]string + Timestamp int64 + Value string + func NewMetric(name, value string, timestamp int64) Metric + func NewMetricWithTags(name, value string, timestamp int64, tags map[string]string) Metric + func (metric Metric) IsUninitialized() bool + func (metric Metric) String() string