package
Version:
v0.0.0-...-47c56e1
Opens a new window with list of versions in this module.
Published: Oct 12, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Db has all the functions to interact with a firebase realtime database
CreateDatabase will return a database initialized with the app
Get will get an array of bytes of the data at a certain path.
GetData will get an interface{} of the data at a certain path.
Set will set the data at a path to an array of bytes
SetData will set the data at a path to an interface{}
Stream will call a handler on any changes to the database
type StreamEvent struct {
Path string
AbsPath string
Data interface{}
}
StreamEvent contains the data in a stream event sent by firebase
Source Files
¶
Click to show internal directories.
Click to hide internal directories.