firebase

package module
v0.0.0-...-a96ad6c Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeFirebaseWithEnv

func InitializeFirebaseWithEnv() (*firestore.Client, error)

InitializeFirebaseWithEnv initializes Firebase with the environment variables.

Types

type APIToken

type APIToken struct {
	CreatedAt string `firestore:"createdAt" json:"createdAt"`
	ExpiredAt string `firestore:"expiredAt" json:"expiredAt"`
	Token     string `firestore:"token" json:"token"`
	ExpiresIn int    `firestore:"expiresIn" json:"expiresIn"`
}

APIToken is the Firebase API token.

type FirestoreUser

type FirestoreUser struct {
	Email       string `firestore:"email" json:"email"`
	ID          string `firestore:"id" json:"id"`
	DisplayName string `firestore:"displayName" json:"displayName"`
	Username    string `firestore:"username" json:"username"`
	UpdatedAt   string `firestore:"updatedAt" json:"updatedAt"`
}

FirestoreUser is a user in Firestore

Jump to

Keyboard shortcuts

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