예제 #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
}