@@ -2,14 +2,15 @@ package query
22
33import (
44 "errors"
5- w "github.com/fabricekabongo/loggerhead/world"
6- "github.com/prometheus/client_golang/prometheus"
7- "github.com/prometheus/client_golang/prometheus/promauto"
85 "log"
96 "os"
107 "strconv"
118 "strings"
129 "time"
10+
11+ w "github.com/fabricekabongo/loggerhead/world"
12+ "github.com/prometheus/client_golang/prometheus"
13+ "github.com/prometheus/client_golang/prometheus/promauto"
1314)
1415
1516var (
@@ -205,7 +206,7 @@ func (p *GetQueryProcessor) Execute(query string) string {
205206 return stringBuilder .String ()
206207}
207208
208- func (p * GetQueryProcessor ) CanProcess (query string ) bool {
209+ func (* GetQueryProcessor ) CanProcess (query string ) bool {
209210 chunks := strings .Split (query , " " )
210211 if len (chunks ) != 3 {
211212 return false
@@ -248,7 +249,7 @@ func (p *DeleteQueryProcessor) Execute(query string) string {
248249 return version + ",deleted\n "
249250}
250251
251- func (p * DeleteQueryProcessor ) CanProcess (query string ) bool {
252+ func (* DeleteQueryProcessor ) CanProcess (query string ) bool {
252253 chunks := strings .Split (query , " " )
253254 if len (chunks ) != 3 {
254255 return false
@@ -305,7 +306,7 @@ func (p *SaveQueryProcessor) Execute(query string) string {
305306 return version + ",saved\n "
306307}
307308
308- func (p * SaveQueryProcessor ) CanProcess (query string ) bool {
309+ func (* SaveQueryProcessor ) CanProcess (query string ) bool {
309310 chunks := strings .Split (query , " " )
310311 if len (chunks ) != 5 {
311312 return false
@@ -370,7 +371,7 @@ func (p *PolyQueryProcessor) Execute(query string) string {
370371 return result .String ()
371372}
372373
373- func (p * PolyQueryProcessor ) CanProcess (query string ) bool {
374+ func (* PolyQueryProcessor ) CanProcess (query string ) bool {
374375 chunks := strings .Split (query , " " )
375376 if len (chunks ) != 6 {
376377 return false
0 commit comments