Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateDeviceStatus ¶
func UpdateDeviceStatus(ctx context.Context, client *FirebaseClient, uid string, status bool)
UpdateDeviceStatus update device status
func UpdateDeviceStatusWithIP ¶
func UpdateDeviceStatusWithIP(ctx context.Context, client *FirebaseClient, uid string, status bool, ip string)
UpdateDeviceStatusWithIP same as UpdateDeviceStatus but also takes IP arg
Types ¶
type FirebaseClient ¶
type FirebaseClient struct {
// contains filtered or unexported fields
}
FirebaseClient firebaseClient type
func InitFirebase ¶
func InitFirebase(ctx context.Context) (*FirebaseClient, error)
InitFirebase firebase initialization
Click to show internal directories.
Click to hide internal directories.