Documentation ¶
Index ¶
- Variables
- func Connect() error
- func Decr(key string)
- func Incr(key string)
- func RecordHTTPResponse(process func() (*http.Response, error)) (*http.Response, error)
- func Stats(interval time.Duration)
- func Write(name string, tags map[string]string, fields map[string]interface{}) error
- type MetricWriter
- type NullWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Database string
)
Functions ¶
func RecordHTTPResponse ¶
Types ¶
type MetricWriter ¶
type MetricWriter interface {
Write(influx.BatchPoints) error
}
type NullWriter ¶
type NullWriter struct{}
The writer used for testing
func (NullWriter) Close ¶
func (nw NullWriter) Close() error
func (NullWriter) Ping ¶
Ping checks that status of cluster, and will always return 0 time and no error for UDP clients
func (NullWriter) Write ¶
func (nw NullWriter) Write(bp influx.BatchPoints) error
Click to show internal directories.
Click to hide internal directories.