mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 07:29:04 +01:00
20 lines
366 B
Go
20 lines
366 B
Go
package sinks
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Sink struct {
|
|
host string
|
|
port string
|
|
user string
|
|
password string
|
|
database string
|
|
}
|
|
|
|
type SinkFuncs interface {
|
|
Init(host string, port string, user string, password string, database string) error
|
|
Write(measurement string, tags map[string]string, fields map[string]interface{}, t time.Time) error
|
|
Close()
|
|
}
|