services

package
v0.0.0-...-3f36b81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

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

type FirebaseDevice

type FirebaseDevice struct {
	IPAddress  string
	Status     bool
	DeviceType string
	UID        string
}

FirebaseDevice refers to device in firebase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL