Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Adapters = map[string]Connect{}
Adapters is the list of registered database adapters
Functions ¶
func RegisterAdapter ¶
Types ¶
type Connect ¶
type Connect func(config map[string]interface{}) (Connection, error)
Connect function with config to get DB connection interface
type Connection ¶
type Connection interface {
// InsertNode stores statistics per node
InsertNode(node *runtime.Node)
// InsertLink stores statistics per link
InsertLink(*runtime.Link, time.Time)
// InsertGlobals stores global statistics
InsertGlobals(*runtime.GlobalStats, time.Time, string, string)
// PruneNodes prunes historical per-node data
PruneNodes(deleteAfter time.Duration)
// Close closes the database connection
Close()
}
Connection interface to use for implementation in e.g. influxdb
Click to show internal directories.
Click to hide internal directories.