Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Maximum time to try and connect to InfluxDB during startup. DefaultStartUpTimeout = time.Minute * 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Enabled bool `toml:"enabled"`
Name string `toml:"name"`
Default bool `toml:"default"`
URLs []string `toml:"urls"`
Username string `toml:"username"`
Password string `toml:"password"`
// Path to CA file
SSLCA string `toml:"ssl-ca"`
// Path to host cert file
SSLCert string `toml:"ssl-cert"`
// Path to cert key file
SSLKey string `toml:"ssl-key"`
// Use SSL but skip chain & host verification
InsecureSkipVerify bool `toml:"insecure-skip-verify"`
Timeout toml.Duration `toml:"timeout"`
Subscriptions map[string][]string `toml:"subscriptions"`
ExcludedSubscriptions map[string][]string `toml:"excluded-subscriptions"`
UDPBuffer int `toml:"udp-buffer"`
UDPReadBuffer int `toml:"udp-read-buffer"`
StartUpTimeout toml.Duration `toml:"startup-timeout"`
}
type Service ¶
type Service struct {
PointsWriter interface {
WritePoints(database, retentionPolicy string, consistencyLevel models.ConsistencyLevel, points []models.Point) error
}
LogService interface {
NewLogger(string, int) *log.Logger
}
// contains filtered or unexported fields
}
Handles requests to write or read from an InfluxDB cluster
func NewService ¶
func (*Service) NewDefaultClient ¶ added in v0.11.0
func (*Service) NewNamedClient ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.