Пример #1
0
func NewExporter(nodeURL string) *couchbaseExporter {
	e := &couchbaseExporter{
		BaseExporter: exporttools.NewBaseExporter("couchbase"),
		nodeURL:      nodeURL,
	}
	return e
}
Пример #2
0
func NewExporter(connURL, dbName string) *postgresExporter {
	e := &postgresExporter{
		BaseExporter: exporttools.NewBaseExporter("postgres"),
		connURL:      connURL,
		dbName:       dbName,
	}
	return e
}