1
0
Fork 0

Add comment on accepted format

This commit is contained in:
Gregory Eremin 2014-08-12 15:30:04 +07:00
parent e8dbc2aa55
commit 57ea4b463e
No known key found for this signature in database
GPG Key ID: 5EFA427EEC26E86C
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ func (b *Buffer) Flush() {
}
// Searches for points of given series that matches provided conditions
// Two formats are accepted:
// 1. plain (e.g: "foo")
// 2. regexp (e.g: "/^foo_.*?_bar$/")
// All resulting series MUST have the same set of columns in the same order
func (b *Buffer) Lookup(pattern string, conds map[string]interface{}) (res map[string]*influxdb.Series, err error) {
res = make(map[string]*influxdb.Series)