Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeCreate = "CREATE" // on a document created TypeUpdate = "UPDATE" // on a document updated TypeDelete = "DELETE" // on a document deleted )
event types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirestoreEvent ¶
type FirestoreEvent struct { OldValue *Value `json:"oldValue"` Value *Value `json:"value"` UpdateMask *struct { FieldPaths []string `json:"fieldPaths"` } `json:"updateMask"` }
FirestoreEvent is the payload of a Firestore event.
func (*FirestoreEvent) Type ¶
func (e *FirestoreEvent) Type() string
Type returns event type, which is one of following constants:
- TypeCreate
- TypeUpdate
- TypeDelete
Click to show internal directories.
Click to hide internal directories.