forked from acoshift/go-firebase-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.go
30 lines (28 loc) · 908 Bytes
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package firebase
// Query is the query interface
type Query interface {
Ref() *Reference
EndAt(value interface{}) Query
EqualTo(value interface{}) Query
IsEqual(other Query) bool
LimitToFirst(limit int) Query
LimitToLast(limit int) Query
OrderByChild(path interface{}) Query
OrderByKey() Query
OrderByPriority() Query
OrderByValue() Query
StartAt(value interface{}) Query
OnValue(event chan *DataSnapshot) CancelFunc
OnChildAdded(event chan *ChildSnapshot) CancelFunc
OnChildRemoved(event chan *OldChildSnapshot) CancelFunc
OnChildChanged(event chan *ChildSnapshot) CancelFunc
OnChildMoved(event chan *ChildSnapshot) CancelFunc
OnceValue() (*DataSnapshot, error)
OnceChildAdded() *ChildSnapshot
OnceChildRemove() *OldChildSnapshot
OnceChildChanged() *ChildSnapshot
OnceChildMoved() *ChildSnapshot
String() string
}
// CancelFunc is the function for cancel "On"
type CancelFunc func()