From 57ea4b463e971d8d7aeabcdb9256721e89a1c91d Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Tue, 12 Aug 2014 15:30:04 +0700 Subject: [PATCH] Add comment on accepted format --- buffer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buffer.go b/buffer.go index e80d38c..a275dea 100644 --- a/buffer.go +++ b/buffer.go @@ -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)