mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-27 07:39:05 +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()
|
|
}
|