Add comment on accepted format
This commit is contained in:
parent
e8dbc2aa55
commit
57ea4b463e
|
@ -62,6 +62,9 @@ func (b *Buffer) Flush() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Searches for points of given series that matches provided conditions
|
// 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
|
// 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) {
|
func (b *Buffer) Lookup(pattern string, conds map[string]interface{}) (res map[string]*influxdb.Series, err error) {
|
||||||
res = make(map[string]*influxdb.Series)
|
res = make(map[string]*influxdb.Series)
|
||||||
|
|
Loading…
Reference in New Issue