firebase

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

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package firebase contains a Firestore Cloud Function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelloAuth

func HelloAuth(ctx context.Context, e AuthEvent) error

HelloAuth is triggered by Firestore Auth events.

Types

type AuthEvent

type AuthEvent struct {
	Email    string `json:"email"`
	Metadata struct {
		CreatedAt time.Time `json:"createdAt"`
	} `json:"metadata"`
	UID string `json:"uid"`
}

AuthEvent is the payload of a Firestore Auth event.

Jump to

Keyboard shortcuts

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