|
|
@ -12,6 +12,7 @@ type Query struct { |
|
|
|
skipper Skipper |
|
|
|
skipper Skipper |
|
|
|
preloader Preloader |
|
|
|
preloader Preloader |
|
|
|
ondecode Callbacks |
|
|
|
ondecode Callbacks |
|
|
|
|
|
|
|
onclose Callbacks |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// And function pushes the elem query to the $and array of the query
|
|
|
|
// And function pushes the elem query to the $and array of the query
|
|
|
@ -81,6 +82,10 @@ func (q *Query) OnDecode() (callbacks Callbacks) { |
|
|
|
return q.ondecode |
|
|
|
return q.ondecode |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (q *Query) OnClose() (callbacks Callbacks) { |
|
|
|
|
|
|
|
return q.onclose |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Empty checks the query for any content
|
|
|
|
// Empty checks the query for any content
|
|
|
|
func (q *Query) Empty() (isEmpty bool) { |
|
|
|
func (q *Query) Empty() (isEmpty bool) { |
|
|
|
return len(q.m) == 0 |
|
|
|
return len(q.m) == 0 |
|
|
|