hydroponics

package
v0.0.0-...-f2ad24a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

pubsub converts a Pub/Sub event or state into a new Firestore and BigQuery database entry.

The Firestore schema will be something like:

devices collection

{device_id}      document
  telemetry			collection
    {timestamp}  document
      ec.a
      ec.b
      ph.a
      ph.b
      tank.a
      tank.b
      temp.indoor
      temp.probe
      humidity
      pressure

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePubSub

func HandlePubSub(ctx context.Context, m pubSubMessage) error

HandlePubSub consumes a Pub/Sub message and insert those values into the Firestore and BigQuery database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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